Re: [PATCH 2/3] power: supply: wm97xx: Use devm_power_supply_register()

From: Waqar Hameed

Date: Wed Jan 14 2026 - 05:51:24 EST


On Mon, Jan 12, 2026 at 02:36 +0100 Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx> wrote:

[...]

>> @@ -257,7 +254,6 @@ static void wm97xx_bat_remove(struct platform_device *dev)
>> if (charge_gpiod)
>> free_irq(gpiod_to_irq(charge_gpiod), dev);
>> cancel_work_sync(&bat_work);
>> - power_supply_unregister(bat_psy);
>> kfree(prop);
>> }
>
> This free's prop before bat_psy. You fix that in the next patch, but
> to be bisectable those two patches must be swapped.

Ah, of course! Let's swap the patches in v2.