diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-05-31 15:18:55 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-07-23 09:49:56 +0100 |
commit | e49575f46cdb40014e14789a18e637f8fb917317 (patch) | |
tree | ff1219c6d595f96ae303f13a91085f6c595295a2 /drivers/leds/leds-atmel-pwm.c | |
parent | 30be0486791fb637e758c771956c8f73bef3467c (diff) |
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 <lizf@cn.fujitsu.com>
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Diffstat (limited to 'drivers/leds/leds-atmel-pwm.c')
-rw-r--r-- | drivers/leds/leds-atmel-pwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-atmel-pwm.c b/drivers/leds/leds-atmel-pwm.c index 28db6c1444e..52297c3ab24 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; |