diff options
-rw-r--r-- | arch/microblaze/include/asm/of_device.h | 13 | ||||
-rw-r--r-- | arch/powerpc/include/asm/of_device.h | 3 | ||||
-rw-r--r-- | arch/sparc/include/asm/device.h | 2 | ||||
-rw-r--r-- | arch/sparc/include/asm/of_device.h | 19 | ||||
-rw-r--r-- | arch/sparc/include/asm/prom.h | 4 | ||||
-rw-r--r-- | include/linux/of_device.h | 2 |
6 files changed, 7 insertions, 36 deletions
diff --git a/arch/microblaze/include/asm/of_device.h b/arch/microblaze/include/asm/of_device.h deleted file mode 100644 index 47e8d42aee8f..000000000000 --- a/arch/microblaze/include/asm/of_device.h +++ /dev/null | |||
@@ -1,13 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2007-2008 Michal Simek <monstr@monstr.eu> | ||
3 | * | ||
4 | * based on PowerPC of_device.h | ||
5 | * | ||
6 | * This file is subject to the terms and conditions of the GNU General Public | ||
7 | * License. See the file "COPYING" in the main directory of this archive | ||
8 | * for more details. | ||
9 | */ | ||
10 | |||
11 | #ifndef _ASM_MICROBLAZE_OF_DEVICE_H | ||
12 | #define _ASM_MICROBLAZE_OF_DEVICE_H | ||
13 | #endif /* _ASM_MICROBLAZE_OF_DEVICE_H */ | ||
diff --git a/arch/powerpc/include/asm/of_device.h b/arch/powerpc/include/asm/of_device.h deleted file mode 100644 index 04f76717f82c..000000000000 --- a/arch/powerpc/include/asm/of_device.h +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | #ifndef _ASM_POWERPC_OF_DEVICE_H | ||
2 | #define _ASM_POWERPC_OF_DEVICE_H | ||
3 | #endif /* _ASM_POWERPC_OF_DEVICE_H */ | ||
diff --git a/arch/sparc/include/asm/device.h b/arch/sparc/include/asm/device.h index fb220e482039..daa6a8a5e9cd 100644 --- a/arch/sparc/include/asm/device.h +++ b/arch/sparc/include/asm/device.h | |||
@@ -19,6 +19,8 @@ struct dev_archdata { | |||
19 | int numa_node; | 19 | int numa_node; |
20 | }; | 20 | }; |
21 | 21 | ||
22 | extern void of_propagate_archdata(struct platform_device *bus); | ||
23 | |||
22 | struct pdev_archdata { | 24 | struct pdev_archdata { |
23 | struct resource resource[PROMREG_MAX]; | 25 | struct resource resource[PROMREG_MAX]; |
24 | unsigned int irqs[PROMINTR_MAX]; | 26 | unsigned int irqs[PROMINTR_MAX]; |
diff --git a/arch/sparc/include/asm/of_device.h b/arch/sparc/include/asm/of_device.h deleted file mode 100644 index 22b9828fe693..000000000000 --- a/arch/sparc/include/asm/of_device.h +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | #ifndef _ASM_SPARC_OF_DEVICE_H | ||
2 | #define _ASM_SPARC_OF_DEVICE_H | ||
3 | #ifdef __KERNEL__ | ||
4 | |||
5 | #include <linux/device.h> | ||
6 | #include <linux/of.h> | ||
7 | #include <linux/mod_devicetable.h> | ||
8 | #include <asm/openprom.h> | ||
9 | |||
10 | extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name); | ||
11 | extern void of_iounmap(struct resource *res, void __iomem *base, unsigned long size); | ||
12 | |||
13 | extern void of_propagate_archdata(struct of_device *bus); | ||
14 | |||
15 | /* This is just here during the transition */ | ||
16 | #include <linux/of_platform.h> | ||
17 | |||
18 | #endif /* __KERNEL__ */ | ||
19 | #endif /* _ASM_SPARC_OF_DEVICE_H */ | ||
diff --git a/arch/sparc/include/asm/prom.h b/arch/sparc/include/asm/prom.h index ac695742df85..d35df5ace18a 100644 --- a/arch/sparc/include/asm/prom.h +++ b/arch/sparc/include/asm/prom.h | |||
@@ -51,6 +51,10 @@ extern void prom_build_devicetree(void); | |||
51 | extern void of_populate_present_mask(void); | 51 | extern void of_populate_present_mask(void); |
52 | extern void of_fill_in_cpu_data(void); | 52 | extern void of_fill_in_cpu_data(void); |
53 | 53 | ||
54 | struct resource; | ||
55 | extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name); | ||
56 | extern void of_iounmap(struct resource *res, void __iomem *base, unsigned long size); | ||
57 | |||
54 | /* These routines are here to provide compatibility with how powerpc | 58 | /* These routines are here to provide compatibility with how powerpc |
55 | * handles IRQ mapping for OF device nodes. We precompute and permanently | 59 | * handles IRQ mapping for OF device nodes. We precompute and permanently |
56 | * register them in the of_device objects, whereas powerpc computes them | 60 | * register them in the of_device objects, whereas powerpc computes them |
diff --git a/include/linux/of_device.h b/include/linux/of_device.h index 8cd1fe7864e3..0f1911994559 100644 --- a/include/linux/of_device.h +++ b/include/linux/of_device.h | |||
@@ -16,12 +16,12 @@ | |||
16 | */ | 16 | */ |
17 | #define of_device platform_device | 17 | #define of_device platform_device |
18 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
19 | #include <linux/of_platform.h> /* temporary until merge */ | ||
19 | 20 | ||
20 | #ifdef CONFIG_OF_DEVICE | 21 | #ifdef CONFIG_OF_DEVICE |
21 | #include <linux/device.h> | 22 | #include <linux/device.h> |
22 | #include <linux/of.h> | 23 | #include <linux/of.h> |
23 | #include <linux/mod_devicetable.h> | 24 | #include <linux/mod_devicetable.h> |
24 | #include <asm/of_device.h> | ||
25 | 25 | ||
26 | #define to_of_device(d) container_of(d, struct of_device, dev) | 26 | #define to_of_device(d) container_of(d, struct of_device, dev) |
27 | 27 | ||