]> asedeno.scripts.mit.edu Git - linux.git/commit
of/platform: Disable generic device linking code for PowerPC
authorSaravana Kannan <saravanak@google.com>
Tue, 6 Aug 2019 19:26:54 +0000 (12:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Aug 2019 15:36:54 +0000 (17:36 +0200)
commit9c1c5e0bc5ec032e78bf15c302f3b20152f865ad
tree353324b13dbdd7b5fd5a48048490af8333fc7ece
parente6aa640eb2f68920cb849aec0cab44f05d843238
of/platform: Disable generic device linking code for PowerPC

PowerPC platforms don't use the generic of/platform code to populate the
devices from DT.  Therefore the generic device linking code is never used
in PowerPC.  Compile it out to avoid warning about unused functions.

If a specific PowerPC platform wants to use this code in the future,
bringing this back for PowerPC would be trivial. We'll just need to export
of_link_to_suppliers() and then let the machine specific files do the
linking as they populate the devices from DT.

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