Re: [PATCH 01/10] soc: qcom: aoss: Use __cleanup() for device_node pointers
From: Krzysztof Kozlowski
Date: Tue Nov 18 2025 - 06:44:43 EST
On 17/11/2025 05:51, Kathiravan Thirumoorthy wrote:
> Make use of the __cleanup() attribute for device_node pointers to simplify
> resource management and remove explicit of_node_put() calls.
>
> Signed-off-by: Kathiravan Thirumoorthy <kathiravan.thirumoorthy@xxxxxxxxxxxxxxxx>
> ---
> drivers/soc/qcom/qcom_aoss.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/soc/qcom/qcom_aoss.c b/drivers/soc/qcom/qcom_aoss.c
> index a543ab9bee6c4efcbd7026c44af9731176d4d60c..cc9882009bcac7eae8db74815563cdf1cd9a5aa6 100644
> --- a/drivers/soc/qcom/qcom_aoss.c
> +++ b/drivers/soc/qcom/qcom_aoss.c
> @@ -447,8 +447,8 @@ static void qmp_cooling_devices_remove(struct qmp *qmp)
> */
> struct qmp *qmp_get(struct device *dev)
> {
> + struct device_node *np __free(device_node) = NULL;
NAK, same reasons
Best regards,
Krzysztof