aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sunxi/pinctrl-sunxi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl/sunxi/pinctrl-sunxi.c')
-rw-r--r--drivers/pinctrl/sunxi/pinctrl-sunxi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
index ef9d804e55de..3d0744337736 100644
--- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c
+++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c
@@ -553,7 +553,7 @@ static int sunxi_pinctrl_irq_request_resources(struct irq_data *d)
553 if (!func) 553 if (!func)
554 return -EINVAL; 554 return -EINVAL;
555 555
556 ret = gpio_lock_as_irq(pctl->chip, 556 ret = gpiochip_lock_as_irq(pctl->chip,
557 pctl->irq_array[d->hwirq] - pctl->desc->pin_base); 557 pctl->irq_array[d->hwirq] - pctl->desc->pin_base);
558 if (ret) { 558 if (ret) {
559 dev_err(pctl->dev, "unable to lock HW IRQ %lu for IRQ\n", 559 dev_err(pctl->dev, "unable to lock HW IRQ %lu for IRQ\n",
@@ -571,8 +571,8 @@ static void sunxi_pinctrl_irq_release_resources(struct irq_data *d)
571{ 571{
572 struct sunxi_pinctrl *pctl = irq_data_get_irq_chip_data(d); 572 struct sunxi_pinctrl *pctl = irq_data_get_irq_chip_data(d);
573 573
574 gpio_unlock_as_irq(pctl->chip, 574 gpiochip_unlock_as_irq(pctl->chip,
575 pctl->irq_array[d->hwirq] - pctl->desc->pin_base); 575 pctl->irq_array[d->hwirq] - pctl->desc->pin_base);
576} 576}
577 577
578static int sunxi_pinctrl_irq_set_type(struct irq_data *d, unsigned int type) 578static int sunxi_pinctrl_irq_set_type(struct irq_data *d, unsigned int type)