summaryrefslogtreecommitdiff
path: root/arch/sparc/kernel/leon_pci_grpci1.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2023-07-18 14:45:20 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-03 15:19:33 +0200
commitbda2265e6d1c44fc974498bd217fd8a2bddf2d9c (patch)
treede2689d1fd5f4f88a1c15a0b27ab059dba2587a9 /arch/sparc/kernel/leon_pci_grpci1.c
parent220778af6c7285dbe7a989141074433ea66b3f98 (diff)
sparc: Explicitly include correct DT includes
[ Upstream commit 263291fa44ff0909b5b7c43ff40babc1c43362f2 ] The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. As a result, there's a pretty much random mix of those include files used throughout the tree. In order to detangle these headers and replace the implicit includes with struct declarations, users need to explicitly include the correct includes. Acked-by: Sam Ravnborg <sam@ravnborg.org> Link: https://lore.kernel.org/all/20230718143211.1066810-1-robh@kernel.org/ Signed-off-by: Rob Herring <robh@kernel.org> Stable-dep-of: 91d3ff922c34 ("sparc32: Fix parport build with sparc32") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/sparc/kernel/leon_pci_grpci1.c')
-rw-r--r--arch/sparc/kernel/leon_pci_grpci1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc/kernel/leon_pci_grpci1.c b/arch/sparc/kernel/leon_pci_grpci1.c
index c32590bdd312..b2b639bee068 100644
--- a/arch/sparc/kernel/leon_pci_grpci1.c
+++ b/arch/sparc/kernel/leon_pci_grpci1.c
@@ -13,10 +13,11 @@
* Contributors: Daniel Hellstrom <daniel@gaisler.com>
*/
-#include <linux/of_device.h>
#include <linux/export.h>
#include <linux/kernel.h>
+#include <linux/of.h>
#include <linux/of_irq.h>
+#include <linux/platform_device.h>
#include <linux/delay.h>
#include <linux/pci.h>