max8997_charger&max8998_charger: Fix unterminated platform_device_id tables
authorAxel Lin <axel.lin@gmail.com>
Sun, 31 Jul 2011 23:23:00 +0000 (07:23 +0800)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Fri, 19 Aug 2011 17:03:20 +0000 (21:03 +0400)
The platform_device_id table is supposed to be zero-terminated.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/max8997_charger.c
drivers/power/max8998_charger.c

index ffc5033..e12b4a2 100644 (file)
@@ -178,6 +178,7 @@ static int __devexit max8997_battery_remove(struct platform_device *pdev)
 
 static const struct platform_device_id max8997_battery_id[] = {
        { "max8997-battery", 0 },
+       { }
 };
 
 static struct platform_driver max8997_battery_driver = {
index ef8efad..8ac5fab 100644 (file)
@@ -189,6 +189,7 @@ static int __devexit max8998_battery_remove(struct platform_device *pdev)
 
 static const struct platform_device_id max8998_battery_id[] = {
        { "max8998-battery", TYPE_MAX8998 },
+       { }
 };
 
 static struct platform_driver max8998_battery_driver = {