aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-03-25 15:35:15 +0000
committerJonas Gorski <jogo@openwrt.org>2015-03-25 15:35:15 +0000
commitad218d3033f98820c96196a4c666215b5f41a0f6 (patch)
treeaec1cfa7e74f157a9db2c1f32311f27bead4423d
parent2d3371cd0fa1bd3631633ad9c2ddd1d232d8397f (diff)
downloadupstream-ad218d3033f98820c96196a4c666215b5f41a0f6.tar.gz
upstream-ad218d3033f98820c96196a4c666215b5f41a0f6.tar.bz2
upstream-ad218d3033f98820c96196a4c666215b5f41a0f6.zip
brcm63xx: fix compilation on 3.14
Fixes the following issue: drivers/gpio/gpio-bcm63xx.c: In function 'bcm63xx_gpio_probe': drivers/gpio/gpio-bcm63xx.c:80:4: error: implicit declaration of function 'devm_kasprintf' [-Werror=implicit-function-declaration] Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44986
-rw-r--r--target/linux/brcm63xx/patches-3.14/374-gpio-add-a-simple-GPIO-driver-for-bcm63xx.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/patches-3.14/374-gpio-add-a-simple-GPIO-driver-for-bcm63xx.patch b/target/linux/brcm63xx/patches-3.14/374-gpio-add-a-simple-GPIO-driver-for-bcm63xx.patch
index 6f74d027f9..b068a3220d 100644
--- a/target/linux/brcm63xx/patches-3.14/374-gpio-add-a-simple-GPIO-driver-for-bcm63xx.patch
+++ b/target/linux/brcm63xx/patches-3.14/374-gpio-add-a-simple-GPIO-driver-for-bcm63xx.patch
@@ -121,7 +121,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
+ u32 ngpios;
+
+ if (id >= 0)
-+ bgc->gc.label = devm_kasprintf(dev, GFP_KERNEL,
++ bgc->gc.label = kasprintf(GFP_KERNEL,
+ "bcm63xx-gpio.%d", id);
+
+ if (!of_property_read_u32(dev->of_node, "ngpios", &ngpios))