]> git.baikalelectronics.ru Git - kernel.git/commit
phy: rockchip: Fix return value of inno_dsidphy_probe()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Mon, 25 May 2020 13:08:57 +0000 (21:08 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 24 Jun 2020 12:59:09 +0000 (18:29 +0530)
commitaf87f95627ba3409d69071384c4393e8470292fc
tree878e079d6ada40f1017b58ea8088f4ccaa517b22
parent7c2f5d49b5e376e25fcfe7a5b8d6a1ddcf5da818
phy: rockchip: Fix return value of inno_dsidphy_probe()

When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.

Fixes: a16f75df16f5 ("phy/rockchip: Add support for Innosilicon MIPI/LVDS/TTL PHY")
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/1590412138-13903-1-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c