[PATCH] power_supply: fix unterminated platform_device_id tablefor max8997_charger and max8998_charger

From: Axel Lin
Date: Sun Jul 31 2011 - 19:23:19 EST


The platform_device_id table is supposed to be zero-terminated.

Signed-off-by: Axel Lin <axel.lin@xxxxxxxxx>
---
drivers/power/max8997_charger.c | 1 +
drivers/power/max8998_charger.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/power/max8997_charger.c b/drivers/power/max8997_charger.c
index 7106b49..9848fb8 100644
--- a/drivers/power/max8997_charger.c
+++ b/drivers/power/max8997_charger.c
@@ -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 = {
diff --git a/drivers/power/max8998_charger.c b/drivers/power/max8998_charger.c
index cc21fa2..4ddacb4 100644
--- a/drivers/power/max8998_charger.c
+++ b/drivers/power/max8998_charger.c
@@ -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 = {
--
1.7.4.1



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/