drivers/video/backlight/ld9040.c: small fixes
authorAxel Lin <axel.lin@gmail.com>
Tue, 26 Jul 2011 00:11:58 +0000 (17:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2011 03:57:07 +0000 (20:57 -0700)
commite2e7da9bccd77ef6793b865c1b78c7e519ccc562
tree1d8a4231b5020778a14784d707c0033bace26235
parentccb6108f5b0b541d3eb332c3a73e645c0f84278e
drivers/video/backlight/ld9040.c: small fixes

- Fix checking of wrong return value for backlight_device_register()

- Properly free allocated resources in ld9040_probe() error path and
  ld9040_remove().

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Cc: Donghwa Lee <dh09.lee@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/ld9040.c