aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Krogerus <[email protected]>2021-11-15 15:10:00 +0300
committerRafael J. Wysocki <[email protected]>2021-11-24 15:28:01 +0100
commit982b94ba0983bee504cdd317428cc012c8405c78 (patch)
treea76641939bfe6aa7081d2f7235e892c43612ef25
parent0c9e032a45e777b707bd8ae282242a2b9be3ac91 (diff)
driver core: Don't call device_remove_properties() from device_del()
All the drivers that relied on device_del() to call device_remove_properties() have now been converted to either use device_create_managed_software_node() instead of device_add_properties(), or to register the software node completely separately from the device. This will make it finally possible to share and reuse the software nodes that hold the additional device properties. Signed-off-by: Heikki Krogerus <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
-rw-r--r--drivers/base/core.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index fd034d742447..a40b6fb1ebb0 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -3582,7 +3582,6 @@ void device_del(struct device *dev)
device_pm_remove(dev);
driver_deferred_probe_del(dev);
device_platform_notify_remove(dev);
- device_remove_properties(dev);
device_links_purge(dev);
if (dev->bus)