aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-07-31 19:23:00 -0400
committerAnton Vorontsov <cbouatmailru@gmail.com>2011-08-19 13:03:20 -0400
commitc03bfabb60f5070a1c7299eab38b7bb9df64cb11 (patch)
treeb0bd32aa17031a6a9a99e6c11e6fa284710a5635 /drivers/power
parent815efa1eab5b0c3e071e5d6df0cc2d7e0c7e6fd7 (diff)
max8997_charger&max8998_charger: Fix unterminated platform_device_id tables
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/max8997_charger.c1
-rw-r--r--drivers/power/max8998_charger.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/max8997_charger.c b/drivers/power/max8997_charger.c
index ffc5033ea9c9..e12b4a2a0be2 100644
--- a/drivers/power/max8997_charger.c
+++ b/drivers/power/max8997_charger.c
@@ -178,6 +178,7 @@ static int __devexit max8997_battery_remove(struct platform_device *pdev)
178 178
179static const struct platform_device_id max8997_battery_id[] = { 179static const struct platform_device_id max8997_battery_id[] = {
180 { "max8997-battery", 0 }, 180 { "max8997-battery", 0 },
181 { }
181}; 182};
182 183
183static struct platform_driver max8997_battery_driver = { 184static struct platform_driver max8997_battery_driver = {
diff --git a/drivers/power/max8998_charger.c b/drivers/power/max8998_charger.c
index ef8efadb58cb..8ac5fab5a3f4 100644
--- a/drivers/power/max8998_charger.c
+++ b/drivers/power/max8998_charger.c
@@ -189,6 +189,7 @@ static int __devexit max8998_battery_remove(struct platform_device *pdev)
189 189
190static const struct platform_device_id max8998_battery_id[] = { 190static const struct platform_device_id max8998_battery_id[] = {
191 { "max8998-battery", TYPE_MAX8998 }, 191 { "max8998-battery", TYPE_MAX8998 },
192 { }
192}; 193};
193 194
194static struct platform_driver max8998_battery_driver = { 195static struct platform_driver max8998_battery_driver = {