Re: [PATCH] mfd: altera-sysmgr: fix device leak on sysmgr regmap lookup

From: Markus Elfring

Date: Fri Sep 26 2025 - 15:28:56 EST


> Make sure to drop the reference taken to the sysmgr platform device when
> retrieving its driver data.


How do you think about to increase the application of scope-based resource management?
https://elixir.bootlin.com/linux/v6.17-rc7/source/include/linux/device.h#L1180

Regards,
Markus