diff options
author | Sylwester Nawrocki | 2013-03-25 11:56:23 -0500 |
---|---|---|
committer | Misael Lopez Cruz | 2015-03-03 13:58:44 -0600 |
commit | 815d98ef0964884cd695b216cdfc287f7f487b0d (patch) | |
tree | e79294fff93bdfb9f8158591ae4c274336e5a3a1 | |
parent | b8bd1686a6863d7c457eeecd62802778950b87a8 (diff) | |
download | kernel-audio-815d98ef0964884cd695b216cdfc287f7f487b0d.tar.gz kernel-audio-815d98ef0964884cd695b216cdfc287f7f487b0d.tar.xz kernel-audio-815d98ef0964884cd695b216cdfc287f7f487b0d.zip |
mfd: syscon: Add missing struct device_node declaration
syscon.h header uses struct device_node in functions' declarations
without declaring it. This causes compilation warnings like:
include/linux/mfd/syscon.h:20: warning: ‘struct device_node’
declared inside parameter list
include/linux/mfd/syscon.h:20: warning: its scope is only this
definition or declaration, which is probably not what you want
Fix it by adding a forward declaration of struct device_node.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | include/linux/mfd/syscon.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/syscon.h b/include/linux/mfd/syscon.h index 6aeb6b8da64d..f7be936d6d4e 100644 --- a/include/linux/mfd/syscon.h +++ b/include/linux/mfd/syscon.h | |||
@@ -15,6 +15,8 @@ | |||
15 | #ifndef __LINUX_MFD_SYSCON_H__ | 15 | #ifndef __LINUX_MFD_SYSCON_H__ |
16 | #define __LINUX_MFD_SYSCON_H__ | 16 | #define __LINUX_MFD_SYSCON_H__ |
17 | 17 | ||
18 | struct device_node; | ||
19 | |||
18 | extern struct regmap *syscon_node_to_regmap(struct device_node *np); | 20 | extern struct regmap *syscon_node_to_regmap(struct device_node *np); |
19 | extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s); | 21 | extern struct regmap *syscon_regmap_lookup_by_compatible(const char *s); |
20 | extern struct regmap *syscon_regmap_lookup_by_phandle( | 22 | extern struct regmap *syscon_regmap_lookup_by_phandle( |