kernel/drivers/power/supply/ab8500_btemp.c
.. .. @@ -921,10 +921,8 @@ 921 921 */ 922 922 static void ab8500_btemp_external_power_changed(struct power_supply *psy) 923 923 { 924 - struct ab8500_btemp *di = power_supply_get_drvdata(psy);925 -926 - class_for_each_device(power_supply_class, NULL,927 - di->btemp_psy, ab8500_btemp_get_ext_psy_data);924 + class_for_each_device(power_supply_class, NULL, psy,925 + ab8500_btemp_get_ext_psy_data);928 926 } 929 927 930 928 /* ab8500 btemp driver interrupts and their respective isr */