brcm63xx: fix compilation on 3.14
authorJonas Gorski <jogo@openwrt.org>
Wed, 25 Mar 2015 15:35:15 +0000 (15:35 +0000)
committerJonas Gorski <jogo@openwrt.org>
Wed, 25 Mar 2015 15:35:15 +0000 (15:35 +0000)
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

target/linux/brcm63xx/patches-3.14/374-gpio-add-a-simple-GPIO-driver-for-bcm63xx.patch

index 6f74d027f95300e0aa4575539e1856e7d9aef9dd..b068a3220d94373aa5a2947e622cf2e1dd36e30f 100644 (file)
@@ -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))