kernel/drivers/power/supply/ab8500_fg.c
.. .. @@ -2380,10 +2380,8 @@ 2380 2380 */ 2381 2381 static void ab8500_fg_external_power_changed(struct power_supply *psy) 2382 2382 { 2383 - struct ab8500_fg *di = power_supply_get_drvdata(psy);2384 -2385 - class_for_each_device(power_supply_class, NULL,2386 - di->fg_psy, ab8500_fg_get_ext_psy_data);2383 + class_for_each_device(power_supply_class, NULL, psy,2384 + ab8500_fg_get_ext_psy_data);2387 2385 } 2388 2386 2389 2387 /**