Skip to content

Commit

Permalink
leds: bcm6358: remove unneeded busy status check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Álvaro Fernández Rojas authored and Jacek Anaszewski committed Jan 4, 2016
1 parent 1b85a5a commit 1259efa
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/leds/leds-bcm6358.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) ||
Expand Down

0 comments on commit 1259efa

Please sign in to comment.