aboutsummaryrefslogtreecommitdiff
path: root/include/linux/of_platform.h
AgeCommit message (Collapse)AuthorFilesLines
2010-05-22of: Remove duplicate fields from of_platform_driverGrant Likely1-4/+0
.name, .match_table and .owner are duplicated in both of_platform_driver and device_driver. This patch is a removes the extra copies from struct of_platform_driver and converts all users to the device_driver members. This patch is a pretty mechanical change. The usage model doesn't change and if any drivers have been missed, or if anything has been fixed up incorrectly, then it will fail with a compile time error, and the fixup will be trivial. This patch looks big and scary because it touches so many files, but it should be pretty safe. Signed-off-by: Grant Likely <[email protected]> Acked-by: Sean MacLennan <[email protected]>
2010-04-28of: protect contents of of_platform.h and of_device.hGrant Likely1-0/+2
Only process contents of of_platform.h and of_device.h if CONFIG_OF_DEVICE is set. Signed-off-by: Grant Likely <[email protected]>
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]>