Skip to content

Commit

Permalink
max8997_charger&max8998_charger: Fix unterminated platform_device_id …
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
Axel Lin authored and Anton Vorontsov committed Aug 19, 2011
1 parent 815efa1 commit c03bfab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/power/max8997_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
1 change: 1 addition & 0 deletions drivers/power/max8998_charger.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit c03bfab

Please sign in to comment.