Hi, On Tue, Nov 22, 2022 at 09:33:34PM +0100, Linus Walleij wrote: > On Mon, Nov 21, 2022 at 2:14 AM Zhang Qilong wrote: > > > If devm_gpiod_get_optional() returns error, the charger should be > > freed before z2_batt_probe returns according to the context. We > > fix it by just gotoing to 'err' branch. > > > > Fixes: a3b4388ea19b ("power: supply: z2_battery: Convert to GPIO descriptors") > > Signed-off-by: Zhang Qilong > > Oops good catch! > Reviewed-by: Linus Walleij Thanks, queued. -- Sebastian