OSDN Git Service

xhci: ext-caps: Use software node API with the properties
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 4 Feb 2021 14:17:11 +0000 (17:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Feb 2021 09:08:19 +0000 (10:08 +0100)
commitc8134c004ccf131ec41e8c58b096927bb8ba1cd8
tree8a1a31845ac02d02ae9fdebfaf771ed57eb7692b
parentb1638ee56c1a3fddee062beac93d2fe528eb2eca
xhci: ext-caps: Use software node API with the properties

This replaces the platform_device_add_properties() call with
the safer device_create_managed_software_node() that does
exactly the same, but can also guarantee that the lifetime
of the node that is created for the device is tied to the
lifetime of device itself.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210204141711.53775-7-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ext-caps.c