]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 5141/1: PWM: pwm_request() should return an PTR_ERR() instead of NULL.
authorBen Dooks <ben-linux@fluff.org>
Tue, 1 Jul 2008 13:18:27 +0000 (14:18 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 3 Jul 2008 12:25:07 +0000 (13:25 +0100)
commitec59b228efe66b99b56ff6584bb7e167957aa809
tree7a765e743a6e2cfde5db08dfe073a412e42df873
parent54f91c9c4296cb00ba7f6f01b5e5d106f754132c
[ARM] 5141/1: PWM: pwm_request() should return an PTR_ERR() instead of NULL.

Make the return of pwm_request() be more informative than just
being NULL on error by using PTR_ERR() to respond with an
approriate error.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-pxa/pwm.c
drivers/video/backlight/pwm_bl.c