backlight: l4f00242t03: fix error handling in l4f00242t03_probe
authorAxel Lin <axel.lin@gmail.com>
Mon, 3 May 2010 06:42:44 +0000 (14:42 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 26 May 2010 16:34:35 +0000 (17:34 +0100)
Error handling fixes:
1. In the case of kzalloc failure, simple return -ENOMEM instead of goto
   err. ( priv is NULL in this case )
2. In the case of gpio_request fail for reset_gpio and data_enable_gpio,
   properly release resources by goto err and err2 respectively.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Alberto Panizzo <maramaopercheseimorto@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>

No differences found