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, 11 Sep 2022 19:26:41 +0000 (20:26 +0100)
It's already set to output with GPIOD_OUT_LOW.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
target/linux/mediatek/files/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);