提交 c03bfabb 编写于 作者: A Axel Lin 提交者: Anton Vorontsov

max8997_charger&max8998_charger: Fix unterminated platform_device_id tables

The platform_device_id table is supposed to be zero-terminated.
Signed-off-by: NAxel Lin <axel.lin@gmail.com>
Acked-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
上级 815efa1e
...@@ -178,6 +178,7 @@ static int __devexit max8997_battery_remove(struct platform_device *pdev) ...@@ -178,6 +178,7 @@ static int __devexit max8997_battery_remove(struct platform_device *pdev)
static const struct platform_device_id max8997_battery_id[] = { static const struct platform_device_id max8997_battery_id[] = {
{ "max8997-battery", 0 }, { "max8997-battery", 0 },
{ }
}; };
static struct platform_driver max8997_battery_driver = { static struct platform_driver max8997_battery_driver = {
......
...@@ -189,6 +189,7 @@ static int __devexit max8998_battery_remove(struct platform_device *pdev) ...@@ -189,6 +189,7 @@ static int __devexit max8998_battery_remove(struct platform_device *pdev)
static const struct platform_device_id max8998_battery_id[] = { static const struct platform_device_id max8998_battery_id[] = {
{ "max8998-battery", TYPE_MAX8998 }, { "max8998-battery", TYPE_MAX8998 },
{ }
}; };
static struct platform_driver max8998_battery_driver = { static struct platform_driver max8998_battery_driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册