aboutsummaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorNate Case <ncase@xes-inc.com>2009-06-17 16:26:17 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-06-18 13:03:44 -0700
commit1965d30356c1c65660ba3330927671cfe81acdd5 (patch)
tree7690fe5353333aa3a21e0b77b69505a79d601ff7 /samples
parentgpio: max7301: add missing __devexit marking (diff)
downloadlinux-dev-1965d30356c1c65660ba3330927671cfe81acdd5.tar.xz
linux-dev-1965d30356c1c65660ba3330927671cfe81acdd5.zip
gpio: pca953x: Get platform_data from OpenFirmware
On OpenFirmware platforms, it makes the most sense to get platform_data from the device tree. Make an attempt to translate OF node properties into platform_data struct before bailing out. Note that the implementation approach taken differs from other device drivers that make use of device tree information. This is because I2C chips are already registered automatically by of_i2c, so we can get by with a small translator function in the driver. [akpm@linux-foundation.org: coding-style fixes] [akpm@linux-foundation.org: kfree(NULL) is legal] Signed-off-by: Nate Case <ncase@xes-inc.com> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions