Re: [PATCH] cpufreq: mediatek: fix device leak on probe failure

From: AngeloGioacchino Del Regno
Date: Tue Sep 09 2025 - 04:01:50 EST


Il 09/09/25 09:38, Johan Hovold ha scritto:
Make sure to drop the reference to the cci device taken by
of_find_device_by_node() on probe failure (e.g. probe deferral).

Fixes: 0daa47325bae ("cpufreq: mediatek: Link CCI device to CPU")
Cc: Jia-Wei Chang <jia-wei.chang@xxxxxxxxxxxx>
Cc: Rex-BC Chen <rex-bc.chen@xxxxxxxxxxxx>
Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>