Re: [PATCH v9 03/15] iommu/mediatek: Return ENODEV if the device is NULL

From: AngeloGioacchino Del Regno
Date: Tue Jan 11 2022 - 05:58:07 EST


Il 12/11/21 11:54, Yong Wu ha scritto:
The platform device is created at:
of_platform_default_populate_init: arch_initcall_sync
->of_platform_populate
->of_platform_device_create_pdata

When entering our probe, all the devices should be already created.
if it is null, means NODEV. Currently we don't get the fail case.
It's a minor fix, no need add fixes tags.

Signed-off-by: Yong Wu <yong.wu@xxxxxxxxxxxx>

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