backlight: atmel-pwm-bl: clean up probe error handling
authorJohan Hovold <jhovold@gmail.com>
Tue, 12 Nov 2013 23:09:41 +0000 (15:09 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 13 Nov 2013 03:09:21 +0000 (12:09 +0900)
commitce726c9738a27ee32a00136cc512b1058044a0fe
tree57acdb0383364b683ffed7b224850283fe3bcd82
parent5c057e5570f18b9d0f4eea99e0a0d55ad5f30e36
backlight: atmel-pwm-bl: clean up probe error handling

Clean up probe error handling by checking parameters before any
allocations and removing an obsolete error label.  Also remove unnecessary
reset of private gpio number.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/atmel-pwm-bl.c