mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
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
This commit is contained in:
parent
5f59daeb04
commit
0e09023c5f
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user