aboutsummaryrefslogtreecommitdiff
path: root/include/linux/of_platform.h
AgeCommit message (Collapse)AuthorFilesLines
2009-05-02of: make of_(un)register_platform_driver common codeGrant Likely1-0/+10
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]>
2008-12-04of: Fix comment, sparc no longer uses of_device objects on special busses.David S. Miller1-2/+1
It only uses of_platform_bus_type. Signed-off-by: David S. Miller <[email protected]>
2007-10-17[SPARC/64]: Consolidate of_register_driverStephen Rothwell1-0/+4
Also of_unregister_driver. These will be shortly also used by the PowerPC code. Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: David S. Miller <[email protected]>
2007-07-22[POWERPC] Constify of_platform_driver match_tableStephen Rothwell1-1/+1
Signed-off-by: Stephen Rothwell <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
2007-07-22[POWERPC] Constify of_platform_driver nameStephen Rothwell1-1/+1
Signed-off-by: Stephen Rothwell <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
2007-07-20Create drivers/of/platform.cStephen Rothwell1-0/+2
and populate it with the common parts from PowerPC and Sparc[64]. Signed-off-by: Stephen Rothwell <[email protected]> Acked-by: Paul Mackerras <[email protected]> Acked-by: David S. Miller <[email protected]>
2007-07-20Create linux/of_platorm.hStephen Rothwell1-0/+55
Move common stuff from asm-powerpc/of_platform.h to here and move the common bits from asm-sparc*/of_device.h here as well. Create asm-sparc*/of_platform.h and move appropriate parts of of_device.h to them. Signed-off-by: Stephen Rothwell <[email protected]> Acked-by: Paul Mackerras <[email protected]> Acked-by: David S. Miller <[email protected]>