From 50838b2bd0b19c78e278b98060e8f5695e6f36f2 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Mon, 23 Jul 2012 20:34:17 +0400 Subject: Fix vexpress crash on boot when device-tree is enabled The bug is cased by commit 1db67fb9437eed6b909cc4a4add7a314375157b0 ([ARM] warnings in include/linux/of_gpio.h) merged into llct from the multiplatform topic. Signed-off-by: Andrey Konovalov --- include/linux/of_gpio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/of_gpio.h b/include/linux/of_gpio.h index 18e015682276..10c2c5a38e4d 100644 --- a/include/linux/of_gpio.h +++ b/include/linux/of_gpio.h @@ -70,7 +70,8 @@ struct gpio_chip; static inline int of_get_named_gpio_flags(struct device_node *np, const char *list_name, int index, enum of_gpio_flags *flags) { - *flags = 0; + if (flags) + *flags = 0; return -ENOSYS; } -- cgit v1.2.3