diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-02-27 17:40:09 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-02-27 17:40:09 +0000 |
commit | c5696515d1ae7d88c59291367198ed3a73d5de59 (patch) | |
tree | bb497396b40e59a9580ec69fcb61431141d877f3 | |
parent | 2c0570fc012d27191195455c92fc73f5a98137ac (diff) | |
download | upstream-c5696515d1ae7d88c59291367198ed3a73d5de59.tar.gz upstream-c5696515d1ae7d88c59291367198ed3a73d5de59.tar.bz2 upstream-c5696515d1ae7d88c59291367198ed3a73d5de59.zip |
brcm63xx: remove gpio base workaround
Now that all gpio users without named gpios use DT, we do not need
to fix the gpio controller bases anymore.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44567 3c298f89-4303-0410-b956-a3cf2f4a3e73
2 files changed, 0 insertions, 68 deletions
diff --git a/target/linux/brcm63xx/patches-3.14/379-gpio-gpio-bcm63xx-use-alias-id-for-base-calculation.patch b/target/linux/brcm63xx/patches-3.14/379-gpio-gpio-bcm63xx-use-alias-id-for-base-calculation.patch deleted file mode 100644 index 5be625a9ae..0000000000 --- a/target/linux/brcm63xx/patches-3.14/379-gpio-gpio-bcm63xx-use-alias-id-for-base-calculation.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 6759a62f28bb1995afe6562c0adfbbb6e8540933 Mon Sep 17 00:00:00 2001 -From: Jonas Gorski <jogo@openwrt.org> -Date: Sun, 22 Feb 2015 12:57:58 +0100 -Subject: [PATCH 6/6] gpio: gpio-bcm63xx: use alias id for base calculation - -Signed-off-by: Jonas Gorski <jogo@openwrt.org> ---- - drivers/gpio/gpio-bcm63xx.c | 6 ++++++ - 1 file changed, 6 insertions(+) - ---- a/drivers/gpio/gpio-bcm63xx.c -+++ b/drivers/gpio/gpio-bcm63xx.c -@@ -32,6 +32,8 @@ - #include <linux/of.h> - #include <linux/of_gpio.h> - -+#define BCM63XX_GPIOS_PER_BANK 32 -+ - static int bcm63xx_gpio_probe(struct platform_device *pdev) - { - struct device *dev = &pdev->dev; -@@ -73,8 +75,12 @@ static int bcm63xx_gpio_probe(struct pla - platform_set_drvdata(pdev, bgc); - - if (dev->of_node) { -+ int id = of_alias_get_id(dev->of_node, "gpio"); - u32 ngpios; - -+ if (id >= 0) -+ bgc->gc.base = id * BCM63XX_GPIOS_PER_BANK; -+ - if (!of_property_read_u32(dev->of_node, "ngpios", &ngpios)) - bgc->gc.ngpio = ngpios; - diff --git a/target/linux/brcm63xx/patches-3.18/379-gpio-gpio-bcm63xx-use-alias-id-for-base-calculation.patch b/target/linux/brcm63xx/patches-3.18/379-gpio-gpio-bcm63xx-use-alias-id-for-base-calculation.patch deleted file mode 100644 index 5be625a9ae..0000000000 --- a/target/linux/brcm63xx/patches-3.18/379-gpio-gpio-bcm63xx-use-alias-id-for-base-calculation.patch +++ /dev/null @@ -1,34 +0,0 @@ -From 6759a62f28bb1995afe6562c0adfbbb6e8540933 Mon Sep 17 00:00:00 2001 -From: Jonas Gorski <jogo@openwrt.org> -Date: Sun, 22 Feb 2015 12:57:58 +0100 -Subject: [PATCH 6/6] gpio: gpio-bcm63xx: use alias id for base calculation - -Signed-off-by: Jonas Gorski <jogo@openwrt.org> ---- - drivers/gpio/gpio-bcm63xx.c | 6 ++++++ - 1 file changed, 6 insertions(+) - ---- a/drivers/gpio/gpio-bcm63xx.c -+++ b/drivers/gpio/gpio-bcm63xx.c -@@ -32,6 +32,8 @@ - #include <linux/of.h> - #include <linux/of_gpio.h> - -+#define BCM63XX_GPIOS_PER_BANK 32 -+ - static int bcm63xx_gpio_probe(struct platform_device *pdev) - { - struct device *dev = &pdev->dev; -@@ -73,8 +75,12 @@ static int bcm63xx_gpio_probe(struct pla - platform_set_drvdata(pdev, bgc); - - if (dev->of_node) { -+ int id = of_alias_get_id(dev->of_node, "gpio"); - u32 ngpios; - -+ if (id >= 0) -+ bgc->gc.base = id * BCM63XX_GPIOS_PER_BANK; -+ - if (!of_property_read_u32(dev->of_node, "ngpios", &ngpios)) - bgc->gc.ngpio = ngpios; - |