From: Álvaro Fernández Rojas Date: Wed, 16 Dec 2015 20:13:49 +0000 (+0100) Subject: leds: bcm6358: remove unneeded busy status check X-Git-Tag: v4.5-rc1~150^2~2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1259efaab84fbc0a307477e0d2734793aa556814;p=karo-tx-linux.git leds: bcm6358: remove unneeded busy status check The busy status checking isn't needed while reading initial LED status. Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Jacek Anaszewski --- diff --git a/drivers/leds/leds-bcm6358.c b/drivers/leds/leds-bcm6358.c index 7413e3e71213..b2cc06618abe 100644 --- a/drivers/leds/leds-bcm6358.c +++ b/drivers/leds/leds-bcm6358.c @@ -123,9 +123,6 @@ static int bcm6358_led(struct device *dev, struct device_node *nc, u32 reg, led->cdev.brightness = LED_FULL; } else if (!strcmp(state, "keep")) { unsigned long val; - - bcm6358_led_busy(led->mem); - val = bcm6358_led_read(led->mem + BCM6358_REG_MODE); val &= BIT(led->pin); if ((led->active_low && !val) ||