diff options
author | Li Zefan <lizf@cn.fujitsu.com> | 2008-05-31 10:18:55 -0400 |
---|---|---|
committer | Richard Purdie <rpurdie@rpsys.net> | 2008-07-23 04:49:56 -0400 |
commit | e49575f46cdb40014e14789a18e637f8fb917317 (patch) | |
tree | ff1219c6d595f96ae303f13a91085f6c595295a2 /drivers/leds | |
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')
-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 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) | |||
37 | { | 37 | { |
38 | const struct gpio_led_platform_data *pdata; | 38 | const struct gpio_led_platform_data *pdata; |
39 | struct pwmled *leds; | 39 | struct pwmled *leds; |
40 | unsigned i; | 40 | int i; |
41 | int status; | 41 | int status; |
42 | 42 | ||
43 | pdata = pdev->dev.platform_data; | 43 | pdata = pdev->dev.platform_data; |