diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-10-16 23:43:34 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-12-10 21:34:39 -0500 |
commit | 18cce5d321cf01413f416d7fe9fb00404cba04fd (patch) | |
tree | f65ad23405fd33032d5f5af01b64f5873d675a6d /include/asm-powerpc/of_platform.h | |
parent | b242a60206881559bb3102110048762422e6b74e (diff) |
[POWERPC] Use of_register_driver to implement of_register_platform_driver
Also use of_unregister_driver to implement of_unregister_platform_driver.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-powerpc/of_platform.h')
-rw-r--r-- | include/asm-powerpc/of_platform.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-powerpc/of_platform.h b/include/asm-powerpc/of_platform.h index 80e6fad28b4f..d20a4cd08fa1 100644 --- a/include/asm-powerpc/of_platform.h +++ b/include/asm-powerpc/of_platform.h | |||
@@ -15,8 +15,14 @@ | |||
15 | #include <linux/of_platform.h> | 15 | #include <linux/of_platform.h> |
16 | 16 | ||
17 | /* Platform drivers register/unregister */ | 17 | /* Platform drivers register/unregister */ |
18 | extern int of_register_platform_driver(struct of_platform_driver *drv); | 18 | static inline int of_register_platform_driver(struct of_platform_driver *drv) |
19 | extern void of_unregister_platform_driver(struct of_platform_driver *drv); | 19 | { |
20 | return of_register_driver(drv, &of_platform_bus_type); | ||
21 | } | ||
22 | static inline void of_unregister_platform_driver(struct of_platform_driver *drv) | ||
23 | { | ||
24 | of_unregister_driver(drv); | ||
25 | } | ||
20 | 26 | ||
21 | /* Platform devices and busses creation */ | 27 | /* Platform devices and busses creation */ |
22 | extern struct of_device *of_platform_device_create(struct device_node *np, | 28 | extern struct of_device *of_platform_device_create(struct device_node *np, |