aboutsummaryrefslogtreecommitdiff
path: root/include/linux/of_device.h
AgeCommit message (Collapse)AuthorFilesLines
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]>
2008-05-16[POWERPC] Move of_device_get_modalias to drivers/ofStephen Rothwell1-0/+3
Commit 140b932f8cb6cced10b96860651a198b1b89cbb9 ("Create modalias file in sysfs for of_platform bus") needs this to avoid breaking the sparc builds. Just move the code and add whitespace around some binary operators. Signed-off-by: Stephen Rothwell <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
2008-04-30Remove "#ifdef __KERNEL__" checks from unexported headersRobert P. J. Day1-2/+0
Remove the "#ifdef __KERNEL__" tests from unexported header files in linux/include whose entire contents are wrapped in that preprocessor test. Signed-off-by: Robert P. J. Day <[email protected]> Cc: David Woodhouse <[email protected]> Cc: Sam Ravnborg <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2008-01-17[POWERPC] Add of_find_matching_node() helper functionGrant Likely1-2/+0
Similar to of_find_compatible_node(), of_find_matching_node() and for_each_matching_node() allow you to iterate over the device tree looking for specific nodes, except that they take of_device_id tables instead of strings. This also moves of_match_node() from driver/of/device.c to driver/of/base.c to colocate it with the of_find_matching_node which depends on it. Signed-off-by: Grant Likely <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
2007-10-17[POWERPC] Move of_device allocation into of_device.[ch]Joachim Fenkes1-0/+5
Extract generic of_device allocation code from of_platform_device_create() and move it into of_device.[ch], called of_device_alloc(). Also, there's now of_device_free() which puts the device node. This way, bus drivers that build on of_platform (like ibmebus will) can build upon this code instead of reinventing the wheel. Signed-off-by: Joachim Fenkes <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
2007-07-20Begin consolidation of of_device.hStephen Rothwell1-0/+26
This just moves the common stuff from the arch of_device.h files to linux/of_device.h. Signed-off-by: Stephen Rothwell <[email protected]> Acked-by: Paul Mackerras <[email protected]> Acked-by: David S. Miller <[email protected]>