aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/da9030_battery.c
diff options
context:
space:
mode:
authorAnton Vorontsov <anton.vorontsov@linaro.org>2012-08-22 22:59:45 -0400
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-08-22 23:00:45 -0400
commitc084e092e47ca2435673702c6cf6e87a731ecc6f (patch)
tree8f21758a9f4ac762f7ca718660d0889965d4dee4 /drivers/power/da9030_battery.c
parentb1b56872be3b36af19313bf0953b1361c36b4a98 (diff)
da9030_battery: Don't use 0 as NULL
Noticed the new warning: CHECK drivers/power/da9030_battery.c drivers/power/da9030_battery.c:190:68: warning: Using plain integer as NULL pointer This commit fixes the issue. Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power/da9030_battery.c')
-rw-r--r--drivers/power/da9030_battery.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/da9030_battery.c b/drivers/power/da9030_battery.c
index 3fd3e95d2b85..94762e67e22b 100644
--- a/drivers/power/da9030_battery.c
+++ b/drivers/power/da9030_battery.c
@@ -187,8 +187,8 @@ static const struct file_operations bat_debug_fops = {
187 187
188static struct dentry *da9030_bat_create_debugfs(struct da9030_charger *charger) 188static struct dentry *da9030_bat_create_debugfs(struct da9030_charger *charger)
189{ 189{
190 charger->debug_file = debugfs_create_file("charger", 0666, 0, charger, 190 charger->debug_file = debugfs_create_file("charger", 0666, NULL,
191 &bat_debug_fops); 191 charger, &bat_debug_fops);
192 return charger->debug_file; 192 return charger->debug_file;
193} 193}
194 194