Commit e49575f4 authored by Li Zefan's avatar Li Zefan Committed by Richard Purdie

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: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarRichard Purdie <rpurdie@rpsys.net>
parent 30be0486
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment