]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit404700703f00b38f1640ec3e5077e3371f69c0c0
treedd153ad2e067f87d6f4abb6cf87caefedc8afacb
parentd12c3b647cb6ca289ee0405b0728f0b2b67c9a27
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