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
This commit is contained in:
parent
2d3371cd0f
commit
ad218d3033
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue