Skip to content

Commit 5be5547

Browse files
author
Bartosz Golaszewski
committed
pinctrl: tegra: 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 8e1df2f commit 5be5547

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

drivers/gpio/gpio-tegra.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@ static void tegra_gpio_disable(struct tegra_gpio_info *tgi, unsigned int gpio)
137137
tegra_gpio_mask_write(tgi, GPIO_MSK_CNF(tgi, gpio), gpio, 0);
138138
}
139139

140-
static int tegra_gpio_request(struct gpio_chip *chip, unsigned int offset)
141-
{
142-
return pinctrl_gpio_request(chip, offset);
143-
}
144-
145140
static void tegra_gpio_free(struct gpio_chip *chip, unsigned int offset)
146141
{
147142
struct tegra_gpio_info *tgi = gpiochip_get_data(chip);
@@ -717,7 +712,7 @@ static int tegra_gpio_probe(struct platform_device *pdev)
717712
}
718713

719714
tgi->gc.label = "tegra-gpio";
720-
tgi->gc.request = tegra_gpio_request;
715+
tgi->gc.request = pinctrl_gpio_request;
721716
tgi->gc.free = tegra_gpio_free;
722717
tgi->gc.direction_input = tegra_gpio_direction_input;
723718
tgi->gc.get = tegra_gpio_get;

0 commit comments

Comments
 (0)