diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/leds/leds-renesas-tpu.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/leds/leds-renesas-tpu.c b/drivers/leds/leds-renesas-tpu.c index 771ea067e680..614776a30943 100644 --- a/drivers/leds/leds-renesas-tpu.c +++ b/drivers/leds/leds-renesas-tpu.c | |||
@@ -204,10 +204,10 @@ static void r_tpu_set_pin(struct r_tpu_priv *p, enum r_tpu_pin new_state, | |||
204 | if (p->pin_state == R_TPU_PIN_GPIO_FN) | 204 | if (p->pin_state == R_TPU_PIN_GPIO_FN) |
205 | gpio_free(cfg->pin_gpio_fn); | 205 | gpio_free(cfg->pin_gpio_fn); |
206 | 206 | ||
207 | if (new_state == R_TPU_PIN_GPIO) { | 207 | if (new_state == R_TPU_PIN_GPIO) |
208 | gpio_request(cfg->pin_gpio, cfg->name); | 208 | gpio_request_one(cfg->pin_gpio, GPIOF_DIR_OUT | !!brightness, |
209 | gpio_direction_output(cfg->pin_gpio, !!brightness); | 209 | cfg->name); |
210 | } | 210 | |
211 | if (new_state == R_TPU_PIN_GPIO_FN) | 211 | if (new_state == R_TPU_PIN_GPIO_FN) |
212 | gpio_request(cfg->pin_gpio_fn, cfg->name); | 212 | gpio_request(cfg->pin_gpio_fn, cfg->name); |
213 | 213 | ||