From: Jonas Gorski Date: Wed, 25 Mar 2015 15:35:15 +0000 (+0000) Subject: brcm63xx: fix compilation on 3.14 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ad218d3033f98820c96196a4c666215b5f41a0f6;p=openwrt%2Fstaging%2Fmkresin.git 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 SVN-Revision: 44986 --- 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 + 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))