driver core: Use device's fwnode to check if it is waiting for suppliers
authorSaravana Kannan <saravanak@google.com>
Sat, 21 Nov 2020 02:02:28 +0000 (18:02 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 18:13:02 +0000 (19:13 +0100)
commit25ac86c6dbe62fba9b97e997fa648cdbe2d40173
tree249aaf46122d7df526dc9f2c1079e8bae6579cc9
parentc2c724c868c42c5166bf7aa644dd0a0c8d30b47a
driver core: Use device's fwnode to check if it is waiting for suppliers

To check if a device is still waiting for its supplier devices to be
added, we used to check if the devices is in a global
waiting_for_suppliers list. Since the global list will be deleted in
subsequent patches, this patch stops using this check.

Instead, this patch uses a more device specific check. It checks if the
device's fwnode has any fwnode links that haven't been converted to
device links yet.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20201121020232.908850-14-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c