mfd: syscon: Fix sparse warning
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 11 Feb 2013 20:48:00 +0000 (18:48 -0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:26:36 +0000 (00:26 +0100)
Fix the following sparse warnings:

drivers/mfd/syscon.c:40:15: warning: symbol 'syscon_node_to_regmap' was not declared. Should it be static?
drivers/mfd/syscon.c:56:15: warning: symbol 'syscon_regmap_lookup_by_compatible' was not declared. Should it be static?
drivers/mfd/syscon.c:72:15: warning: symbol 'syscon_regmap_lookup_by_phandle' was not declared. Should it be static?

Cc: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/syscon.c

index 3f10591ea94e9d2242bf8b79a6689703c93ed238..61aea6381cdf37675595dd3a9a7173ea3fc69eb9 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/of_platform.h>
 #include <linux/platform_device.h>
 #include <linux/regmap.h>
+#include <linux/mfd/syscon.h>
 
 static struct platform_driver syscon_driver;