diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-08-23 06:59:45 +0400 |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-08-23 07:00:45 +0400 |
commit | c084e092e47ca2435673702c6cf6e87a731ecc6f (patch) | |
tree | 8f21758a9f4ac762f7ca718660d0889965d4dee4 /drivers/power | |
parent | b1b56872be3b36af19313bf0953b1361c36b4a98 (diff) | |
download | linux-c084e092e47ca2435673702c6cf6e87a731ecc6f.tar.xz |
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')
-rw-r--r-- | drivers/power/da9030_battery.c | 4 |
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; } |