of: property: Skip adding device links to suppliers that aren't devices
authorSaravana Kannan <saravanak@google.com>
Mon, 28 Oct 2019 22:00:26 +0000 (15:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 2 Nov 2019 17:05:19 +0000 (18:05 +0100)
commit15956dad5c1016155c82d094f8c1273a30f79c3d
treedd153ad2e067f87d6f4abb6cf87caefedc8afacb
parent0ff5cc1ec33b4b7540c4bc09f50123befc6ed947
of: property: Skip adding device links to suppliers that aren't devices

Some devices need to be initialized really early and can't wait for
driver core or drivers to be functional.  These devices are typically
initialized without creating a struct device for their device nodes.

If a supplier ends up being one of these devices, skip trying to add
device links to them.

Signed-off-by: Saravana Kannan <saravanak@google.com>
Link: https://lore.kernel.org/r/20191028220027.251605-6-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/property.c