aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorAnton Vorontsov <cbouatmailru@gmail.com>2010-05-02 15:50:38 -0400
committerAnton Vorontsov <cbouatmailru@gmail.com>2010-05-02 15:58:30 -0400
commitb1458fb57de03b19296cac70e9455b05912782b5 (patch)
tree79ba6cfa9346bb2d396199575bd2044fadc73165 /drivers/power
parentab6cc8f9b716a3d0a41b42cd81d392183211a7f2 (diff)
wm97xx_battery: Quieten sparse warning (bat_set_pdata not declared)
This patch fixes following sparse warning: drivers/power/wm97xx_battery.c:311:6: warning: symbol 'wm97xx_bat_set_pdata' was not declared. Should it be static? Note that we can't just include linux/wm97xx_batt.h because the header is deprecated, and so this pops up: In file included from drivers/power/wm97xx_battery.c:22: include/linux/wm97xx_batt.h:6: warning: #warning This file will be removed soon, use wm97xx.h instead! Since wm97xx_bat_set_pdata() is also deprecated (in favour of pdata passed via AC97 bus), just workaround the issue by declaring the function in wm97xx_battery.c. Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/wm97xx_battery.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/power/wm97xx_battery.c b/drivers/power/wm97xx_battery.c
index 94c70650aafc..4e8afce0c818 100644
--- a/drivers/power/wm97xx_battery.c
+++ b/drivers/power/wm97xx_battery.c
@@ -308,6 +308,9 @@ static void __exit wm97xx_bat_exit(void)
308 platform_driver_unregister(&wm97xx_bat_driver); 308 platform_driver_unregister(&wm97xx_bat_driver);
309} 309}
310 310
311/* The interface is deprecated, as well as linux/wm97xx_batt.h */
312void wm97xx_bat_set_pdata(struct wm97xx_batt_info *data);
313
311void wm97xx_bat_set_pdata(struct wm97xx_batt_info *data) 314void wm97xx_bat_set_pdata(struct wm97xx_batt_info *data)
312{ 315{
313 gpdata = data; 316 gpdata = data;