diff mbox

[-next] ipaq_micro_battery: fix sparse non static symbol warning

Message ID 1406553261-29495-1-git-send-email-weiyj_lk@163.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

weiyj_lk@163.com July 28, 2014, 1:14 p.m. UTC
From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>

Fixes the following sparse warnings:

drivers/power/ipaq_micro_battery.c:278:24: warning:
 symbol 'micro_batt_device_driver' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
---
 drivers/power/ipaq_micro_battery.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Sebastian Reichel July 28, 2014, 1:39 p.m. UTC | #1
Hi,

On Mon, Jul 28, 2014 at 09:14:21PM +0800, weiyj_lk@163.com wrote:
> Fixes the following sparse warnings:
> 
> drivers/power/ipaq_micro_battery.c:278:24: warning:
>  symbol 'micro_batt_device_driver' was not declared. Should it be static?

thanks, pulled into battery-2.6.git:

http://git.infradead.org/battery-2.6.git/commit/5e37195f30cc31e6a1052cbc282254e127c1b8c7

-- Sebastian
diff mbox

Patch

diff --git a/drivers/power/ipaq_micro_battery.c b/drivers/power/ipaq_micro_battery.c
index 54632ea..9d69460 100644
--- a/drivers/power/ipaq_micro_battery.c
+++ b/drivers/power/ipaq_micro_battery.c
@@ -275,7 +275,7 @@  static const struct dev_pm_ops micro_batt_dev_pm_ops = {
 	SET_SYSTEM_SLEEP_PM_OPS(micro_batt_suspend, micro_batt_resume)
 };
 
-struct platform_driver micro_batt_device_driver = {
+static struct platform_driver micro_batt_device_driver = {
 	.driver		= {
 		.name	= "ipaq-micro-battery",
 		.pm	= &micro_batt_dev_pm_ops,