]> git.baikalelectronics.ru Git - kernel.git/commit
driver core: Don't call device_remove_properties() from device_del()
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 15 Nov 2021 12:10:00 +0000 (15:10 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 24 Nov 2021 14:28:01 +0000 (15:28 +0100)
commit62144a4ed1493c4032f648334b998a012d44eebc
treea76641939bfe6aa7081d2f7235e892c43612ef25
parent5eae10a0394ed732ea8a9f334c751ee3a08c2646
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>
drivers/base/core.c