kernel_optimize_test/arch/microblaze
Grant Likely 0763ed2355 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 <grant.likely@secretlab.ca>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-05-02 15:36:10 -07:00
..
boot microblaze_v8: Makefiles for Microblaze cpu 2009-03-27 14:25:51 +01:00
configs microblaze_v8: defconfig file 2009-03-27 14:25:19 +01:00
include/asm of: make of_(un)register_platform_driver common code 2009-05-02 15:36:10 -07:00
kernel microblaze: add parameter to microblaze_read() 2009-04-23 16:27:38 +02:00
lib microblaze_v8: Makefiles for Microblaze cpu 2009-03-27 14:25:51 +01:00
mm microblaze_v8: Makefiles for Microblaze cpu 2009-03-27 14:25:51 +01:00
platform microblaze_v8: Makefiles for Microblaze cpu 2009-03-27 14:25:51 +01:00
Kconfig microblaze_v8: Kconfig patches 2009-03-27 14:25:50 +01:00
Kconfig.debug microblaze_v8: Kconfig patches 2009-03-27 14:25:50 +01:00
Makefile microblaze: Use CFLAGS_KERNEL instead of CFLAGS 2009-04-23 16:27:35 +02:00