summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Wegener2021-06-12 19:56:21 +0000
committerDaniel Golle2022-09-11 19:26:41 +0000
commita188356484f434c72ea536d91d7f93f59c562eb5 (patch)
tree8742e70b907a862c6868a0fe49f0b86f0151fdc3
parent56c2d15587dfe5285f1cf3bfb236c827bc446465 (diff)
downloadopenwrt-a188356484f434c72ea536d91d7f93f59c562eb5.tar.gz
mediatek: remove gpiod_direction_output()
It's already set to output with GPIOD_OUT_LOW. Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
-rw-r--r--target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c b/target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c
index c5d668836b..9f12cda5d1 100644
--- a/target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c
+++ b/target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c
@@ -153,8 +153,6 @@ static int ubnt_ledbar_probe(struct i2c_client *client,
return ret;
}
- gpiod_direction_output(ledbar->enable_gpio, 0);
-
ledbar->client = client;
mutex_init(&ledbar->lock);