[v2,1/6] driver core: platform: Remove duplicated device_remove_properties() call
diff mbox series

Message ID 20181109142138.54770-2-heikki.krogerus@linux.intel.com
State New
Headers show
Series
  • device property: Introducing software nodes
Related show

Commit Message

Heikki Krogerus Nov. 9, 2018, 2:21 p.m. UTC
device_remove_properties() is called for every device in device_del().

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
---
 drivers/base/platform.c | 1 -
 1 file changed, 1 deletion(-)

Patch
diff mbox series

diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 41b91af95afb..0fb5f140f1b0 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -448,7 +448,6 @@  void platform_device_del(struct platform_device *pdev)
 	int i;
 
 	if (pdev) {
-		device_remove_properties(&pdev->dev);
 		device_del(&pdev->dev);
 
 		if (pdev->id_auto) {