commit | d8cc667be8fad9ad0bb3a95116be9f80a3b3efcf | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Tue Jan 25 15:07:14 2011 -0800 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Wed Jan 26 10:49:58 2011 +1000 |
tree | b7cd54ac64552d8ce1ffcfdb9caa567ca04bd9a2 | |
parent | f95ba941d1bee594d536cdcbf879a0865381b903 [diff] |
leds: leds-pwm: return proper error if pwm_request failed Return PTR_ERR(led_dat->pwm) instead of 0 if pwm_request failed Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Richard Purdie <rpurdie@rpsys.net> Cc: Luotao Fu <l.fu@pengutronix.de> Cc: Reviewed-by: Dmitry Torokhov <dtor@mail.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>