From: Anton Vorontsov Date: Sun, 2 May 2010 19:50:38 +0000 (+0400) Subject: wm97xx_battery: Quieten sparse warning (bat_set_pdata not declared) X-Git-Tag: v2.6.35-rc1~412^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1458fb57de03b19296cac70e9455b05912782b5;p=pandora-kernel.git 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 --- Reading git-diff-tree failed