Revert "pinctrl: at91: make it work with current gpiolib"
This reverts commit 9e70c59329
.
This commit is contained in:
parent
1bb9dd50fe
commit
41978fa471
1 changed files with 1 additions and 4 deletions
|
@ -1401,11 +1401,8 @@ static int at91_pinctrl_probe(struct platform_device *pdev)
|
|||
|
||||
/* We will handle a range of GPIO pins */
|
||||
for (i = 0; i < gpio_banks; i++)
|
||||
if (gpio_chips[i]) {
|
||||
if (gpio_chips[i])
|
||||
pinctrl_add_gpio_range(info->pctl, &gpio_chips[i]->range);
|
||||
gpiochip_add_pin_range(&gpio_chips[i]->chip, dev_name(info->pctl->dev), 0,
|
||||
gpio_chips[i]->range.pin_base, gpio_chips[i]->range.npins);
|
||||
}
|
||||
|
||||
dev_info(&pdev->dev, "initialized AT91 pinctrl driver\n");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue