diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2014-07-20 13:25:39 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-22 16:28:11 -0700 |
commit | f222447ea1b70a651ec280bfb4a2fde4cbeae983 (patch) | |
tree | 17b5842e71e2d71bca2db30f2da62699c64a9cb0 /drivers/misc/vexpress-syscfg.c | |
parent | 8f642155c5ddafe1247c085f3f0c7b4e63044878 (diff) |
misc: vexpress: Fix sparse non static symbol warnings
Fixes the following sparse warnings:
drivers/misc/vexpress-syscfg.c:133:22: warning:
symbol 'vexpress_syscfg_regmap_config' was not declared. Should it be static?
drivers/misc/vexpress-syscfg.c:279:5: warning:
symbol 'vexpress_syscfg_probe' was not declared. Should it be static?
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/vexpress-syscfg.c')
-rw-r--r-- | drivers/misc/vexpress-syscfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/vexpress-syscfg.c b/drivers/misc/vexpress-syscfg.c index 3250fc1df0a..b3a812384a6 100644 --- a/drivers/misc/vexpress-syscfg.c +++ b/drivers/misc/vexpress-syscfg.c @@ -130,7 +130,7 @@ static int vexpress_syscfg_write(void *context, unsigned int index, return vexpress_syscfg_exec(func, index, true, &val); } -struct regmap_config vexpress_syscfg_regmap_config = { +static struct regmap_config vexpress_syscfg_regmap_config = { .lock = vexpress_config_lock, .unlock = vexpress_config_unlock, .reg_bits = 32, @@ -276,7 +276,7 @@ int vexpress_syscfg_device_register(struct platform_device *pdev) } -int vexpress_syscfg_probe(struct platform_device *pdev) +static int vexpress_syscfg_probe(struct platform_device *pdev) { struct vexpress_syscfg *syscfg; struct resource *res; |