Commit 1259efaa authored by Álvaro Fernández Rojas's avatar Álvaro Fernández Rojas Committed by Jacek Anaszewski

leds: bcm6358: remove unneeded busy status check

The busy status checking isn't needed while reading initial LED status.
Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: default avatarJacek Anaszewski <j.anaszewski@samsung.com>
parent 1b85a5a5
...@@ -123,9 +123,6 @@ static int bcm6358_led(struct device *dev, struct device_node *nc, u32 reg, ...@@ -123,9 +123,6 @@ static int bcm6358_led(struct device *dev, struct device_node *nc, u32 reg,
led->cdev.brightness = LED_FULL; led->cdev.brightness = LED_FULL;
} else if (!strcmp(state, "keep")) { } else if (!strcmp(state, "keep")) {
unsigned long val; unsigned long val;
bcm6358_led_busy(led->mem);
val = bcm6358_led_read(led->mem + BCM6358_REG_MODE); val = bcm6358_led_read(led->mem + BCM6358_REG_MODE);
val &= BIT(led->pin); val &= BIT(led->pin);
if ((led->active_low && !val) || if ((led->active_low && !val) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment