diff options
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/sbs-battery.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/sbs-battery.c b/drivers/power/sbs-battery.c index 3960f0b2afe9..3922f06120c8 100644 --- a/drivers/power/sbs-battery.c +++ b/drivers/power/sbs-battery.c | |||
@@ -27,6 +27,7 @@ | |||
27 | #include <linux/slab.h> | 27 | #include <linux/slab.h> |
28 | #include <linux/interrupt.h> | 28 | #include <linux/interrupt.h> |
29 | #include <linux/gpio.h> | 29 | #include <linux/gpio.h> |
30 | #include <linux/of.h> | ||
30 | 31 | ||
31 | #include <linux/power/sbs-battery.h> | 32 | #include <linux/power/sbs-battery.h> |
32 | 33 | ||
@@ -667,7 +668,6 @@ of_out: | |||
667 | return pdata; | 668 | return pdata; |
668 | } | 669 | } |
669 | #else | 670 | #else |
670 | #define sbs_dt_ids NULL | ||
671 | static struct sbs_platform_data *sbs_of_populate_pdata( | 671 | static struct sbs_platform_data *sbs_of_populate_pdata( |
672 | struct i2c_client *client) | 672 | struct i2c_client *client) |
673 | { | 673 | { |
@@ -859,7 +859,7 @@ static struct i2c_driver sbs_battery_driver = { | |||
859 | .id_table = sbs_id, | 859 | .id_table = sbs_id, |
860 | .driver = { | 860 | .driver = { |
861 | .name = "sbs-battery", | 861 | .name = "sbs-battery", |
862 | .of_match_table = sbs_dt_ids, | 862 | .of_match_table = of_match_ptr(sbs_dt_ids), |
863 | }, | 863 | }, |
864 | }; | 864 | }; |
865 | module_i2c_driver(sbs_battery_driver); | 865 | module_i2c_driver(sbs_battery_driver); |