Re: [PATCH v2] leds-lp3944: properly handle lp3944_configure failin lp3944_probe

From: Wolfram Sang
Date: Mon May 17 2010 - 05:53:34 EST


On Mon, May 17, 2010 at 05:47:48PM +0800, Axel Lin wrote:
> 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 <axel.lin@xxxxxxxxx>

Looks good to me.

Acked-by: Wolfram Sang <w.sang@xxxxxxxxxxxxxx>

--
Pengutronix e.K. | Wolfram Sang |
Industrial Linux Solutions | http://www.pengutronix.de/ |

Attachment: signature.asc
Description: Digital signature