summaryrefslogtreecommitdiffstats
path: root/drivers/leds
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2015-12-16 21:13:49 +0100
committerJacek Anaszewski <j.anaszewski@samsung.com>2016-01-04 09:57:40 +0100
commit1259efaab84fbc0a307477e0d2734793aa556814 (patch)
tree7cd40cbd82c49ed1774fab145fc8b35dc8682d65 /drivers/leds
parent1b85a5a5ef34a64c5c5edece1704bde62208f002 (diff)
downloadop-kernel-dev-1259efaab84fbc0a307477e0d2734793aa556814.zip
op-kernel-dev-1259efaab84fbc0a307477e0d2734793aa556814.tar.gz
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 <noltari@gmail.com> Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Diffstat (limited to 'drivers/leds')
-rw-r--r--drivers/leds/leds-bcm6358.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/leds/leds-bcm6358.c b/drivers/leds/leds-bcm6358.c
index 7413e3e..b2cc066 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) ||
OpenPOWER on IntegriCloud