aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Konovalov <andrey.konovalov@linaro.org>2012-07-23 20:34:17 +0400
committerAndrey Konovalov <andrey.konovalov@linaro.org>2012-07-23 21:46:14 +0400
commit053235eb2549d373b5534c16af92c08e241dcb13 (patch)
treebca98ef20a571c01debdfd8c19e50962bd942455
parent1afaacce1929b91473c8e711983821f47d4f0228 (diff)
Fix vexpress crash on boot when device-tree is enabledtracking-llct-last-minute-fixes-llct-20120723.1
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 <andrey.konovalov@linaro.org>
-rw-r--r--include/linux/of_gpio.h3
1 files changed, 2 insertions, 1 deletions
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;
}