summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-05-31 15:18:55 +0100
committerRichard Purdie <rpurdie@rpsys.net>2008-07-23 09:49:56 +0100
commite49575f46cdb40014e14789a18e637f8fb917317 (patch)
treeff1219c6d595f96ae303f13a91085f6c595295a2 /drivers/leds
parent30be0486791fb637e758c771956c8f73bef3467c (diff)
downloadlinux-e49575f46cdb40014e14789a18e637f8fb917317.tar.gz
linux-e49575f46cdb40014e14789a18e637f8fb917317.tar.bz2
linux-e49575f46cdb40014e14789a18e637f8fb917317.zip
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.c2
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)
{
const struct gpio_led_platform_data *pdata;
struct pwmled *leds;
- unsigned i;
+ int i;
int status;
pdata = pdev->dev.platform_data;