mediatek: remove gpiod_direction_output()
authorSven Wegener <sven.wegener@stealer.net>
Sat, 12 Jun 2021 19:56:21 +0000 (21:56 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 18 Sep 2022 14:39:41 +0000 (15:39 +0100)
It's already set to output with GPIOD_OUT_LOW.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
(cherry picked from commit a188356484f434c72ea536d91d7f93f59c562eb5)

target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c

index c5d668836b7bd1a08731027b6ad8b7683f42e792..9f12cda5d196a944d51097537c95a85f6630db37 100644 (file)
@@ -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);