9
0
Fork 0

syscon: fix prototype compile error

gcc 4.8.3 throws the following error

include/mfd/syscon.h: In function 'syscon_base_lookup_by_pdevname':
include/mfd/syscon.h:22:1: error: parameter name omitted
 static inline void __iomem *syscon_base_lookup_by_pdevname(const char *)

Fix it by adding the name to the function prototype.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Steffen Trumtrar 2014-05-15 17:00:36 +02:00 committed by Sascha Hauer
parent caa31714b5
commit 852867e078
1 changed files with 2 additions and 2 deletions

View File

@ -15,11 +15,11 @@
#define __MFD_SYSCON_H__
#ifdef CONFIG_MFD_SYSCON
void __iomem *syscon_base_lookup_by_pdevname(const char *);
void __iomem *syscon_base_lookup_by_pdevname(const char *s);
void __iomem *syscon_base_lookup_by_phandle
(struct device_node *np, const char *property);
#else
static inline void __iomem *syscon_base_lookup_by_pdevname(const char *)
static inline void __iomem *syscon_base_lookup_by_pdevname(const char *s)
{
return NULL;
}