]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
da9030_battery: Don't use 0 as NULL
authorAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 23 Aug 2012 02:59:45 +0000 (19:59 -0700)
committerAnton Vorontsov <anton.vorontsov@linaro.org>
Thu, 23 Aug 2012 03:00:45 +0000 (20:00 -0700)
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>
drivers/power/da9030_battery.c

index 3fd3e95d2b8517d101e7dbab63e0bafdb0c25513..94762e67e22b69d50c28a587586a83e9266323f9 100644 (file)
@@ -187,8 +187,8 @@ static const struct file_operations bat_debug_fops = {
 
 static struct dentry *da9030_bat_create_debugfs(struct da9030_charger *charger)
 {
-       charger->debug_file = debugfs_create_file("charger", 0666, 0, charger,
-                                                &bat_debug_fops);
+       charger->debug_file = debugfs_create_file("charger", 0666, NULL,
+                                                 charger, &bat_debug_fops);
        return charger->debug_file;
 }