Re: [PATCH v4 1/6] iommu/mediatek: Add platform_device_put for recovering the device refcnt

From: AngeloGioacchino Del Regno
Date: Tue Aug 30 2022 - 04:16:49 EST


Il 24/08/22 08:43, Yong Wu ha scritto:
Add platform_device_put to match with of_find_device_by_node.

Meanwhile, I add a new variable "pcommdev" which is for smi common device.
Otherwise, "platform_device_put(plarbdev)" for smi-common dev may be not
readable. And add a checking for whether pcommdev is NULL.

Fixes: d2e9a1102cfc ("iommu/mediatek: Contain MM IOMMU flow with the MM TYPE")
Signed-off-by: Yong Wu <yong.wu@xxxxxxxxxxxx>

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