[PATCH v4 04/12] drm/mediatek: mtk_dp: Fix hdmi codec and phy driver unregistration

CK Hu (胡俊光) ck.hu at mediatek.com
Thu Aug 27 00:22:41 PDT 2026


On Thu, 2026-07-09 at 13:31 +0200, AngeloGioacchino Del Regno wrote:
> During probe, this driver is registering two platform devices: one
> for the HDMI Codec driver and one for the DisplayPort PHY driver.
> 
> In the probe function, none of the error cases are unregistering
> any of the two platform devices and this may cause registration
> of multiple instances of those in case this driver returns one or
> more probe deferral(s) in the "wrong" spots.
> 
> In order to fix this, add devm actions to unregister those and
> remove the manual calls to platform_device_unregister in the
> mtk_dp_remove() function, as those would otherwise be redundant.

Reviewed-by: CK Hu <ck.hu at mediatek.com>

> 
> Fixes: e71a8ebbe086 ("drm/mediatek: dp: Audio support for MT8195")
> Fixes: caf2ae486742 ("drm/mediatek: dp: Add support for embedded DisplayPort aux-bus")
> Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>
> ---



More information about the linux-arm-kernel mailing list