Skip to content

Commit 8e1df2f

Browse files
author
Bartosz Golaszewski
committed
pinctrl: em: drop the wrapper around pinctrl_gpio_request()
pinctrl_gpio_request() now has the same signature as the wrapper around it so we can drop them. Signed-off-by: Bartosz Golaszewski <[email protected]> Acked-by: Linus Walleij <[email protected]>
1 parent 11d84b2 commit 8e1df2f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/gpio/gpio-em.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,6 @@ static int em_gio_to_irq(struct gpio_chip *chip, unsigned offset)
227227
return irq_create_mapping(gpio_to_priv(chip)->irq_domain, offset);
228228
}
229229

230-
static int em_gio_request(struct gpio_chip *chip, unsigned offset)
231-
{
232-
return pinctrl_gpio_request(chip, offset);
233-
}
234-
235230
static void em_gio_free(struct gpio_chip *chip, unsigned offset)
236231
{
237232
pinctrl_gpio_free(chip, offset);
@@ -311,7 +306,7 @@ static int em_gio_probe(struct platform_device *pdev)
311306
gpio_chip->direction_output = em_gio_direction_output;
312307
gpio_chip->set = em_gio_set;
313308
gpio_chip->to_irq = em_gio_to_irq;
314-
gpio_chip->request = em_gio_request;
309+
gpio_chip->request = pinctrl_gpio_request;
315310
gpio_chip->free = em_gio_free;
316311
gpio_chip->label = name;
317312
gpio_chip->parent = dev;

0 commit comments

Comments
 (0)