diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /include/linux/of_platform.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'include/linux/of_platform.h')
-rw-r--r-- | include/linux/of_platform.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/include/linux/of_platform.h b/include/linux/of_platform.h index a68716ad38ce..fb51ae38cea7 100644 --- a/include/linux/of_platform.h +++ b/include/linux/of_platform.h | |||
@@ -23,13 +23,7 @@ | |||
23 | * of_platform_driver - Legacy of-aware driver for platform devices. | 23 | * of_platform_driver - Legacy of-aware driver for platform devices. |
24 | * | 24 | * |
25 | * An of_platform_driver driver is attached to a basic platform_device on | 25 | * An of_platform_driver driver is attached to a basic platform_device on |
26 | * ether the "platform bus" (platform_bus_type), or the ibm ebus | 26 | * the ibm ebus (ibmebus_bus_type). |
27 | * (ibmebus_bus_type). | ||
28 | * | ||
29 | * of_platform_driver is being phased out when used with the platform_bus_type, | ||
30 | * and regular platform_drivers should be used instead. When the transition | ||
31 | * is complete, only ibmebus will be using this structure, and the | ||
32 | * platform_driver member of this structure will be removed. | ||
33 | */ | 27 | */ |
34 | struct of_platform_driver | 28 | struct of_platform_driver |
35 | { | 29 | { |
@@ -42,35 +36,22 @@ struct of_platform_driver | |||
42 | int (*shutdown)(struct platform_device* dev); | 36 | int (*shutdown)(struct platform_device* dev); |
43 | 37 | ||
44 | struct device_driver driver; | 38 | struct device_driver driver; |
45 | struct platform_driver platform_driver; | ||
46 | }; | 39 | }; |
47 | #define to_of_platform_driver(drv) \ | 40 | #define to_of_platform_driver(drv) \ |
48 | container_of(drv,struct of_platform_driver, driver) | 41 | container_of(drv,struct of_platform_driver, driver) |
49 | 42 | ||
50 | extern int of_register_driver(struct of_platform_driver *drv, | ||
51 | struct bus_type *bus); | ||
52 | extern void of_unregister_driver(struct of_platform_driver *drv); | ||
53 | |||
54 | /* Platform drivers register/unregister */ | 43 | /* Platform drivers register/unregister */ |
55 | extern int of_register_platform_driver(struct of_platform_driver *drv); | ||
56 | extern void of_unregister_platform_driver(struct of_platform_driver *drv); | ||
57 | |||
58 | extern struct platform_device *of_device_alloc(struct device_node *np, | 44 | extern struct platform_device *of_device_alloc(struct device_node *np, |
59 | const char *bus_id, | 45 | const char *bus_id, |
60 | struct device *parent); | 46 | struct device *parent); |
61 | extern struct platform_device *of_find_device_by_node(struct device_node *np); | 47 | extern struct platform_device *of_find_device_by_node(struct device_node *np); |
62 | 48 | ||
63 | extern int of_bus_type_init(struct bus_type *bus, const char *name); | ||
64 | |||
65 | #if !defined(CONFIG_SPARC) /* SPARC has its own device registration method */ | 49 | #if !defined(CONFIG_SPARC) /* SPARC has its own device registration method */ |
66 | /* Platform devices and busses creation */ | 50 | /* Platform devices and busses creation */ |
67 | extern struct platform_device *of_platform_device_create(struct device_node *np, | 51 | extern struct platform_device *of_platform_device_create(struct device_node *np, |
68 | const char *bus_id, | 52 | const char *bus_id, |
69 | struct device *parent); | 53 | struct device *parent); |
70 | 54 | ||
71 | /* pseudo "matches" value to not do deep probe */ | ||
72 | #define OF_NO_DEEP_PROBE ((struct of_device_id *)-1) | ||
73 | |||
74 | extern int of_platform_bus_probe(struct device_node *root, | 55 | extern int of_platform_bus_probe(struct device_node *root, |
75 | const struct of_device_id *matches, | 56 | const struct of_device_id *matches, |
76 | struct device *parent); | 57 | struct device *parent); |