diff options
Diffstat (limited to 'include/asm-sparc')
-rw-r--r-- | include/asm-sparc/of_device.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/include/asm-sparc/of_device.h b/include/asm-sparc/of_device.h index 7cb00c1b09c6..b625261c9ec7 100644 --- a/include/asm-sparc/of_device.h +++ b/include/asm-sparc/of_device.h | |||
@@ -3,9 +3,9 @@ | |||
3 | #ifdef __KERNEL__ | 3 | #ifdef __KERNEL__ |
4 | 4 | ||
5 | #include <linux/device.h> | 5 | #include <linux/device.h> |
6 | #include <linux/of.h> | ||
6 | #include <linux/mod_devicetable.h> | 7 | #include <linux/mod_devicetable.h> |
7 | #include <asm/openprom.h> | 8 | #include <asm/openprom.h> |
8 | #include <asm/prom.h> | ||
9 | 9 | ||
10 | extern struct bus_type ebus_bus_type; | 10 | extern struct bus_type ebus_bus_type; |
11 | extern struct bus_type sbus_bus_type; | 11 | extern struct bus_type sbus_bus_type; |
@@ -30,19 +30,12 @@ struct of_device | |||
30 | int portid; | 30 | int portid; |
31 | int clock_freq; | 31 | int clock_freq; |
32 | }; | 32 | }; |
33 | #define to_of_device(d) container_of(d, struct of_device, dev) | ||
34 | 33 | ||
35 | extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name); | 34 | extern void __iomem *of_ioremap(struct resource *res, unsigned long offset, unsigned long size, char *name); |
36 | extern void of_iounmap(struct resource *res, void __iomem *base, unsigned long size); | 35 | extern void of_iounmap(struct resource *res, void __iomem *base, unsigned long size); |
37 | 36 | ||
38 | extern struct of_device *of_find_device_by_node(struct device_node *); | 37 | extern struct of_device *of_find_device_by_node(struct device_node *); |
39 | 38 | ||
40 | extern const struct of_device_id *of_match_device( | ||
41 | const struct of_device_id *matches, const struct of_device *dev); | ||
42 | |||
43 | extern struct of_device *of_dev_get(struct of_device *dev); | ||
44 | extern void of_dev_put(struct of_device *dev); | ||
45 | |||
46 | /* | 39 | /* |
47 | * An of_platform_driver driver is attached to a basic of_device on | 40 | * An of_platform_driver driver is attached to a basic of_device on |
48 | * the ISA, EBUS, and SBUS busses on sparc64. | 41 | * the ISA, EBUS, and SBUS busses on sparc64. |
@@ -67,13 +60,13 @@ struct of_platform_driver | |||
67 | extern int of_register_driver(struct of_platform_driver *drv, | 60 | extern int of_register_driver(struct of_platform_driver *drv, |
68 | struct bus_type *bus); | 61 | struct bus_type *bus); |
69 | extern void of_unregister_driver(struct of_platform_driver *drv); | 62 | extern void of_unregister_driver(struct of_platform_driver *drv); |
70 | extern int of_device_register(struct of_device *ofdev); | ||
71 | extern void of_device_unregister(struct of_device *ofdev); | ||
72 | extern struct of_device *of_platform_device_create(struct device_node *np, | 63 | extern struct of_device *of_platform_device_create(struct device_node *np, |
73 | const char *bus_id, | 64 | const char *bus_id, |
74 | struct device *parent, | 65 | struct device *parent, |
75 | struct bus_type *bus); | 66 | struct bus_type *bus); |
76 | extern void of_release_dev(struct device *dev); | 67 | |
68 | /* This is just here during the transition */ | ||
69 | #include <linux/of_device.h> | ||
77 | 70 | ||
78 | #endif /* __KERNEL__ */ | 71 | #endif /* __KERNEL__ */ |
79 | #endif /* _ASM_SPARC_OF_DEVICE_H */ | 72 | #endif /* _ASM_SPARC_OF_DEVICE_H */ |