diff options
Diffstat (limited to 'drivers/power/power_supply_core.c')
-rw-r--r-- | drivers/power/power_supply_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c index af1633eb3b70..cb1ccb472921 100644 --- a/drivers/power/power_supply_core.c +++ b/drivers/power/power_supply_core.c | |||
@@ -41,7 +41,7 @@ static void power_supply_changed_work(struct work_struct *work) | |||
41 | 41 | ||
42 | dev_dbg(psy->dev, "%s\n", __func__); | 42 | dev_dbg(psy->dev, "%s\n", __func__); |
43 | 43 | ||
44 | class_for_each_device(power_supply_class, psy, | 44 | class_for_each_device(power_supply_class, NULL, psy, |
45 | __power_supply_changed_work); | 45 | __power_supply_changed_work); |
46 | 46 | ||
47 | power_supply_update_leds(psy); | 47 | power_supply_update_leds(psy); |
@@ -79,7 +79,7 @@ int power_supply_am_i_supplied(struct power_supply *psy) | |||
79 | { | 79 | { |
80 | int error; | 80 | int error; |
81 | 81 | ||
82 | error = class_for_each_device(power_supply_class, psy, | 82 | error = class_for_each_device(power_supply_class, NULL, psy, |
83 | __power_supply_am_i_supplied); | 83 | __power_supply_am_i_supplied); |
84 | 84 | ||
85 | dev_dbg(psy->dev, "%s %d\n", __func__, error); | 85 | dev_dbg(psy->dev, "%s %d\n", __func__, error); |