summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Vorontsov <anton.vorontsov@linaro.org>2012-08-22 19:59:45 -0700
committerAnton Vorontsov <anton.vorontsov@linaro.org>2012-08-22 20:00:45 -0700
commitc084e092e47ca2435673702c6cf6e87a731ecc6f (patch)
tree8f21758a9f4ac762f7ca718660d0889965d4dee4
parentb1b56872be3b36af19313bf0953b1361c36b4a98 (diff)
downloadlwn-c084e092e47ca2435673702c6cf6e87a731ecc6f.tar.gz
lwn-c084e092e47ca2435673702c6cf6e87a731ecc6f.zip
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>
-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 = {
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;
}