diff --git a/[refs] b/[refs] index f07957374e1a..957b98c19ce6 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a6d511e5155406cd214d3af3ff9cffc69548b006 +refs/heads/master: 3b080945aa7670354364c8f9e1a3a07cbb97beb3 diff --git a/trunk/drivers/leds/leds-mc13783.c b/trunk/drivers/leds/leds-mc13783.c index c61e8c4f5469..8bc491541550 100644 --- a/trunk/drivers/leds/leds-mc13783.c +++ b/trunk/drivers/leds/leds-mc13783.c @@ -275,7 +275,7 @@ static int __devinit mc13783_led_probe(struct platform_device *pdev) return -ENODEV; } - if (pdata->num_leds < 1 || pdata->num_leds > MC13783_LED_MAX) { + if (pdata->num_leds < 1 || pdata->num_leds > (MC13783_LED_MAX + 1)) { dev_err(&pdev->dev, "Invalid led count %d\n", pdata->num_leds); return -EINVAL; }