]> git.karo-electronics.de Git - karo-tx-linux.git/commit
leds: leds-gpio: use of_match_ptr()
authorTobias Klauser <tklauser@distanz.ch>
Thu, 16 Aug 2012 10:35:36 +0000 (18:35 +0800)
committerBryan Wu <bryan.wu@canonical.com>
Thu, 23 Aug 2012 02:12:48 +0000 (10:12 +0800)
commit03f760f44aaa14d7f17024d23151a918d88a9adb
tree334ca696dd008f2a39493204a7d3050173321c10
parentff4d84542dd5fe4c2050a28a1e6962e227e3ee0d
leds: leds-gpio: use of_match_ptr()

Instead of having to define the match table to NULL if CONFIG_OF isn't
set, use the of_match_ptr() macro which will do this for us.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
drivers/leds/leds-gpio.c