|
@@ -758,8 +758,10 @@ static void raumfeld_power_signal_charged(void)
|
|
struct power_supply *psy =
|
|
struct power_supply *psy =
|
|
power_supply_get_by_name(raumfeld_power_supplicants[0]);
|
|
power_supply_get_by_name(raumfeld_power_supplicants[0]);
|
|
|
|
|
|
- if (psy)
|
|
|
|
|
|
+ if (psy) {
|
|
power_supply_set_battery_charged(psy);
|
|
power_supply_set_battery_charged(psy);
|
|
|
|
+ power_supply_put(psy);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
static int raumfeld_power_resume(void)
|
|
static int raumfeld_power_resume(void)
|