linux/drivers/pinctrl/mvebu
Thierry Reding 3ee9e605ca pinctrl: armada-37xx: Stop using struct gpio_chip.irq_base
The Armada 37xx driver always initializes the IRQ base to 0, hence the
subtraction is a no-op. Remove the subtraction and thereby the last user
of struct gpio_chip's .irq_base field.

Note that this was also actually a bug and only worked because of the
above assumption. If the IRQ base had been dynamically allocated, the
subtraction would've caused the wrong mask to be generated since the
struct irq_data.hwirq field is an index local to the IRQ domain. As a
result, it should now be safe to also allocate this chip's IRQ base
dynamically, unless there are consumers left that refer to the IRQs by
their global number.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2017-10-19 22:32:41 +02:00
..
Kconfig pinctrl: mvebu: add driver for Armada CP110 pinctrl 2017-06-16 11:23:36 +02:00
Makefile pinctrl: mvebu: add driver for Armada CP110 pinctrl 2017-06-16 11:23:36 +02:00
pinctrl-armada-37xx.c pinctrl: armada-37xx: Stop using struct gpio_chip.irq_base 2017-10-19 22:32:41 +02:00
pinctrl-armada-38x.c pinctrl: mvebu: make bool drivers explicitly non-modular 2017-02-13 14:25:49 +01:00
pinctrl-armada-39x.c pinctrl: mvebu: make bool drivers explicitly non-modular 2017-02-13 14:25:49 +01:00
pinctrl-armada-370.c pinctrl: mvebu: make bool drivers explicitly non-modular 2017-02-13 14:25:49 +01:00
pinctrl-armada-375.c pinctrl: mvebu: make bool drivers explicitly non-modular 2017-02-13 14:25:49 +01:00
pinctrl-armada-ap806.c pinctrl: mvebu: add driver for Armada AP806 pinctrl 2017-06-16 11:22:33 +02:00
pinctrl-armada-cp110.c pinctrl: mvebu: add driver for Armada CP110 pinctrl 2017-06-16 11:23:36 +02:00
pinctrl-armada-xp.c pinctrl: mvebu: make bool drivers explicitly non-modular 2017-02-13 14:25:49 +01:00
pinctrl-dove.c pinctrl: mvebu: make bool drivers explicitly non-modular 2017-02-13 14:25:49 +01:00
pinctrl-kirkwood.c pinctrl: mvebu: make bool drivers explicitly non-modular 2017-02-13 14:25:49 +01:00
pinctrl-mvebu.c pinctrl: mvebu: remove the offset property for regmap 2017-06-16 11:19:50 +02:00
pinctrl-mvebu.h pinctrl: mvebu: remove the offset property for regmap 2017-06-16 11:19:50 +02:00
pinctrl-orion.c pinctrl: mvebu: make bool drivers explicitly non-modular 2017-02-13 14:25:49 +01:00