Skip to content

Commit 982b94b

Browse files
Heikki Krogerusrafaeljw
authored andcommitted
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 <heikki.krogerus@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 0c9e032 commit 982b94b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/base/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3582,7 +3582,6 @@ void device_del(struct device *dev)
35823582
device_pm_remove(dev);
35833583
driver_deferred_probe_del(dev);
35843584
device_platform_notify_remove(dev);
3585-
device_remove_properties(dev);
35863585
device_links_purge(dev);
35873586

35883587
if (dev->bus)

0 commit comments

Comments
 (0)