diff options
author | Rob Herring <rob.herring@calxeda.com> | 2013-09-07 15:05:10 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2013-10-09 21:04:03 -0400 |
commit | 5c9f303e996516dd0dcc2ce8c2b95504d3137b19 (patch) | |
tree | 992f90e9002b8fd449be096b389c7d0818bd21da /arch/microblaze | |
parent | 7b009939af9bc7b698d7ddec03d53604efff881c (diff) |
microblaze: clean-up prom.h implicit includes
While powerpc is a mess of implicit includes by prom.h, microblaze just
copied this and is easily fixed. Add the necessary explicit includes and
remove unnecessary includes and other parts from prom.h
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Cc: Michal Simek <monstr@monstr.eu>
Cc: microblaze-uclinux@itee.uq.edu.au
Cc: netdev@vger.kernel.org
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/include/asm/prom.h | 28 | ||||
-rw-r--r-- | arch/microblaze/kernel/prom.c | 1 | ||||
-rw-r--r-- | arch/microblaze/kernel/setup.c | 1 | ||||
-rw-r--r-- | arch/microblaze/kernel/timer.c | 1 | ||||
-rw-r--r-- | arch/microblaze/pci/pci-common.c | 1 |
5 files changed, 5 insertions, 27 deletions
diff --git a/arch/microblaze/include/asm/prom.h b/arch/microblaze/include/asm/prom.h index 9977816c5ad3..f05bedce70d0 100644 --- a/arch/microblaze/include/asm/prom.h +++ b/arch/microblaze/include/asm/prom.h | |||
@@ -11,17 +11,10 @@ | |||
11 | * as published by the Free Software Foundation; either version | 11 | * as published by the Free Software Foundation; either version |
12 | * 2 of the License, or (at your option) any later version. | 12 | * 2 of the License, or (at your option) any later version. |
13 | */ | 13 | */ |
14 | |||
15 | #include <linux/of.h> /* linux/of.h gets to determine #include ordering */ | ||
16 | |||
17 | #ifndef _ASM_MICROBLAZE_PROM_H | 14 | #ifndef _ASM_MICROBLAZE_PROM_H |
18 | #define _ASM_MICROBLAZE_PROM_H | 15 | #define _ASM_MICROBLAZE_PROM_H |
19 | #ifdef __KERNEL__ | ||
20 | #ifndef __ASSEMBLY__ | ||
21 | 16 | ||
22 | #include <linux/types.h> | 17 | #include <linux/of.h> |
23 | #include <asm/irq.h> | ||
24 | #include <linux/atomic.h> | ||
25 | 18 | ||
26 | #define HAVE_ARCH_DEVTREE_FIXUPS | 19 | #define HAVE_ARCH_DEVTREE_FIXUPS |
27 | 20 | ||
@@ -42,23 +35,4 @@ extern unsigned long pci_address_to_pio(phys_addr_t address); | |||
42 | #define pci_address_to_pio pci_address_to_pio | 35 | #define pci_address_to_pio pci_address_to_pio |
43 | #endif /* CONFIG_PCI */ | 36 | #endif /* CONFIG_PCI */ |
44 | 37 | ||
45 | /* Parse the ibm,dma-window property of an OF node into the busno, phys and | ||
46 | * size parameters. | ||
47 | */ | ||
48 | void of_parse_dma_window(struct device_node *dn, const void *dma_window_prop, | ||
49 | unsigned long *busno, unsigned long *phys, unsigned long *size); | ||
50 | |||
51 | extern void kdump_move_device_tree(void); | ||
52 | |||
53 | #endif /* __ASSEMBLY__ */ | ||
54 | #endif /* __KERNEL__ */ | ||
55 | |||
56 | /* These includes are put at the bottom because they may contain things | ||
57 | * that are overridden by this file. Ideally they shouldn't be included | ||
58 | * by this file, but there are a bunch of .c files that currently depend | ||
59 | * on it. Eventually they will be cleaned up. */ | ||
60 | #include <linux/of_fdt.h> | ||
61 | #include <linux/of_irq.h> | ||
62 | #include <linux/platform_device.h> | ||
63 | |||
64 | #endif /* _ASM_MICROBLAZE_PROM_H */ | 38 | #endif /* _ASM_MICROBLAZE_PROM_H */ |
diff --git a/arch/microblaze/kernel/prom.c b/arch/microblaze/kernel/prom.c index cab6dc356119..abdfb10e7eca 100644 --- a/arch/microblaze/kernel/prom.c +++ b/arch/microblaze/kernel/prom.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include <linux/debugfs.h> | 30 | #include <linux/debugfs.h> |
31 | #include <linux/irq.h> | 31 | #include <linux/irq.h> |
32 | #include <linux/memblock.h> | 32 | #include <linux/memblock.h> |
33 | #include <linux/of_fdt.h> | ||
33 | 34 | ||
34 | #include <asm/prom.h> | 35 | #include <asm/prom.h> |
35 | #include <asm/page.h> | 36 | #include <asm/page.h> |
diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setup.c index 6c4efba8a9c7..8de8ebc309f1 100644 --- a/arch/microblaze/kernel/setup.c +++ b/arch/microblaze/kernel/setup.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/initrd.h> | 16 | #include <linux/initrd.h> |
17 | #include <linux/console.h> | 17 | #include <linux/console.h> |
18 | #include <linux/debugfs.h> | 18 | #include <linux/debugfs.h> |
19 | #include <linux/of_fdt.h> | ||
19 | 20 | ||
20 | #include <asm/setup.h> | 21 | #include <asm/setup.h> |
21 | #include <asm/sections.h> | 22 | #include <asm/sections.h> |
diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/timer.c index e4b3f33ef34c..827df4d003c8 100644 --- a/arch/microblaze/kernel/timer.c +++ b/arch/microblaze/kernel/timer.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <linux/clk.h> | 15 | #include <linux/clk.h> |
16 | #include <linux/clockchips.h> | 16 | #include <linux/clockchips.h> |
17 | #include <linux/of_address.h> | 17 | #include <linux/of_address.h> |
18 | #include <linux/of_irq.h> | ||
18 | #include <asm/cpuinfo.h> | 19 | #include <asm/cpuinfo.h> |
19 | #include <linux/cnt32_to_63.h> | 20 | #include <linux/cnt32_to_63.h> |
20 | 21 | ||
diff --git a/arch/microblaze/pci/pci-common.c b/arch/microblaze/pci/pci-common.c index 1b93bf0892a0..7c8a35238f74 100644 --- a/arch/microblaze/pci/pci-common.c +++ b/arch/microblaze/pci/pci-common.c | |||
@@ -29,6 +29,7 @@ | |||
29 | #include <linux/slab.h> | 29 | #include <linux/slab.h> |
30 | #include <linux/of.h> | 30 | #include <linux/of.h> |
31 | #include <linux/of_address.h> | 31 | #include <linux/of_address.h> |
32 | #include <linux/of_irq.h> | ||
32 | #include <linux/of_pci.h> | 33 | #include <linux/of_pci.h> |
33 | #include <linux/export.h> | 34 | #include <linux/export.h> |
34 | 35 | ||