Re: [PATCH 2/2] soc: qcom: pbs: fix device leak on lookup

From: Markus Elfring

Date: Fri Sep 26 2025 - 14:55:31 EST


> Make sure to drop the reference taken to the pbs platform device when
> looking up its driver data.


How do you think about to increase the application of scope-based resource management?

Is there a need to improve the API description for platform_device_put()?
https://elixir.bootlin.com/linux/v6.17-rc7/source/drivers/base/platform.c#L543-L547

Regards,
Markus