leds: bcm6358: remove unneeded busy status check
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Wed, 16 Dec 2015 20:13:49 +0000 (21:13 +0100)
committerJacek Anaszewski <j.anaszewski@samsung.com>
Mon, 4 Jan 2016 08:57:40 +0000 (09:57 +0100)
The busy status checking isn't needed while reading initial LED status.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
drivers/leds/leds-bcm6358.c

index 7413e3e71213019c2f370d15027b5fcf505b713a..b2cc06618abed309beaa7b0533cdb8b5b0762ff9 100644 (file)
@@ -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) ||