diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2015-10-08 12:35:52 +0200 |
---|---|---|
committer | Jacek Anaszewski <j.anaszewski@samsung.com> | 2015-11-03 08:59:38 +0100 |
commit | 79653fbb3365002899e7d25ec5ca96aff4241ede (patch) | |
tree | 8a0cc66fcc1f0754211635339369b6e730e437b4 /drivers/leds | |
parent | 7b9d9d88158e99a6a17a292ec4ec47105a771c4f (diff) | |
download | linux-stable-79653fbb3365002899e7d25ec5ca96aff4241ede.tar.gz linux-stable-79653fbb3365002899e7d25ec5ca96aff4241ede.tar.bz2 linux-stable-79653fbb3365002899e7d25ec5ca96aff4241ede.zip |
leds-bcm6328: print invalid LED
Print invalid LED instead of warning only about maximum LED value.
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r-- | drivers/leds/leds-bcm6328.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-bcm6328.c b/drivers/leds/leds-bcm6328.c index 1793727bc9ae..e1c19557450f 100644 --- a/drivers/leds/leds-bcm6328.c +++ b/drivers/leds/leds-bcm6328.c @@ -373,7 +373,7 @@ static int bcm6328_leds_probe(struct platform_device *pdev) continue; if (reg >= BCM6328_LED_MAX_COUNT) { - dev_err(dev, "invalid LED (>= %d)\n", + dev_err(dev, "invalid LED (%u >= %d)\n", reg, BCM6328_LED_MAX_COUNT); continue; } |