From: Axel Lin Date: Mon, 17 May 2010 09:47:48 +0000 (+0800) Subject: leds: leds-lp3944: properly handle lp3944_configure fail in lp3944_probe X-Git-Tag: v2.6.35-rc1~32^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e1ce34f25c984a93dc0a2d8c217f7f78516b376;p=pandora-kernel.git leds: leds-lp3944: properly handle lp3944_configure fail in lp3944_probe In current implementation, lp3944_probe return 0 even if lp3944_configure fail. Therefore, led_classdev_unregister will be executed twice ( in error handling of lp3944_configure and lp3944_remove ). This patch properly handles lp3944_configure fail in lp3944_probe. Signed-off-by: Axel Lin Acked-by: Wolfram Sang Acked-by: Antonio Ospite Signed-off-by: Richard Purdie --- Reading git-diff-tree failed