]> asedeno.scripts.mit.edu Git - linux.git/commit
of/platform: Don't create device links for default busses
authorSaravana Kannan <saravanak@google.com>
Wed, 31 Jul 2019 22:17:20 +0000 (15:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Aug 2019 14:04:14 +0000 (16:04 +0200)
commitb3173c2292fbaf24ff7062d366830b012ed04269
tree8c17236a76c30fe2088c1653c149572dc2b33fe9
parent709fb8297358f08a125b770d1518a95d03b541db
of/platform: Don't create device links for default busses

Default busses also have devices created for them. But there's no point
in creating device links for them. It's especially wasteful as it'll
cause the traversal of the entire device tree and also spend a lot of
time checking and figuring out that creating those links isn't allowed.
So check for default busses and skip trying to create device links for
them.

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