aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-3.14
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
commit0e09023c5fffaee65433eab075b01bbcea566391 (patch)
tree1502c01641fd00b96123d13b7f5f33cfa3bb1e2b /target/linux/brcm63xx/patches-3.14
parent5f59daeb04ec5b8e00ca2df43e230239cf8bada4 (diff)
downloadmaster-187ad058-0e09023c5fffaee65433eab075b01bbcea566391.tar.gz
master-187ad058-0e09023c5fffaee65433eab075b01bbcea566391.tar.bz2
master-187ad058-0e09023c5fffaee65433eab075b01bbcea566391.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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44986 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-3.14')
-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))