diff options
author | Grant Likely <[email protected]> | 2009-04-30 15:08:50 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2009-05-02 15:36:10 -0700 |
commit | 0763ed2355198cdef2f6a2098e9d52eb1fe4365d (patch) | |
tree | 44ca8fdbfa940425a11adfa0fd6ac739a3350792 /net/lapb/lapb_in.c | |
parent | 74641f584da8eccf30becfbb5507ab457187db22 (diff) |
of: make of_(un)register_platform_driver common code
Some drivers using of_register_platform_driver() wrapper break on sparc
because the wrapper isn't in the header file. This patch moves it from
Microblaze and PowerPC implementations and makes it common code.
Fixes this sparc64 allmodconfig build error (at least):
drivers/leds/leds-gpio.c: In function `gpio_led_init':
drivers/leds/leds-gpio.c:295: error: implicit declaration of function `of_register_platform_driver'
drivers/leds/leds-gpio.c: In function `gpio_led_exit':
drivers/leds/leds-gpio.c:311: error: implicit declaration of function `of_unregister_platform_driver'
Signed-off-by: Grant Likely <[email protected]>
Acked-by: David S. Miller <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Cc: Richard Purdie <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions