mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 03:06:10 +00:00
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>
This commit is contained in:
parent
30be048679
commit
e49575f46c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue