From: Axel Lin Date: Mon, 3 May 2010 06:42:44 +0000 (+0800) Subject: backlight: l4f00242t03: fix error handling in l4f00242t03_probe X-Git-Tag: v2.6.35-rc1~31^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beb0a43f398efac87a3b9c2c6a5c5a163df50413;p=pandora-kernel.git backlight: l4f00242t03: fix error handling in l4f00242t03_probe 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 Acked-by: Alberto Panizzo Signed-off-by: Richard Purdie --- Reading git-diff-tree failed