From: Li Zefan Date: Sat, 31 May 2008 14:18:55 +0000 (+0100) Subject: leds: fix unsigned value overflow in atmel pwm driver X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e49575f46cdb40014e14789a18e637f8fb917317;p=linux-beck.git leds: fix unsigned value overflow in atmel pwm driver Fix an unsigned value overflow in the error handling code in the Atmel PWM driver. Signed-off-by: Li Zefan Signed-off-by: Richard Purdie --- diff --git a/drivers/leds/leds-atmel-pwm.c b/drivers/leds/leds-atmel-pwm.c index 28db6c1444ed..52297c3ab246 100644 --- a/drivers/leds/leds-atmel-pwm.c +++ b/drivers/leds/leds-atmel-pwm.c @@ -37,7 +37,7 @@ static int __init pwmled_probe(struct platform_device *pdev) { const struct gpio_led_platform_data *pdata; struct pwmled *leds; - unsigned i; + int i; int status; pdata = pdev->dev.platform_data;