Skip to contentSkip to conversation

power_supply: fix unterminated platform_device_id table for max8997_charger and max8998_charger

PATCH New Axel Lin 1 participant 1 message Jul 31, 2011

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 power_supply: fix unterminated platform_device_id table for max8997_charger and max8998_charger

The platform_device_id table is supposed to be zero-terminated.

---
 drivers/power/max8997_charger.c |    1 +
 drivers/power/max8998_charger.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
drivers/power/max8997_charger.c +1 -0
index 7106b49..9848fb8 100644
@@ -177,6 +177,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 = {
drivers/power/max8998_charger.c +1 -0
index cc21fa2..4ddacb4 100644
@@ -188,6 +188,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 = {
Signature · 1 line
1.7.4.1