video: rockchip: dw_mipi_dsi: Correct check for lacking phy phandle
authorOndrej Jirman <megi@xff.cz>
Mon, 22 May 2023 21:47:07 +0000 (23:47 +0200)
committerAnatolij Gustschin <agust@denx.de>
Fri, 14 Jul 2023 16:29:11 +0000 (18:29 +0200)
commit7c5f278a030359d2266b63345f9f9f2890a5f17f
treefccb15c195c43297573bb5db1588702b7730cf9c
parentdc3f2403c2ae65dea795855d97ce2bb1c2be2d35
video: rockchip: dw_mipi_dsi: Correct check for lacking phy phandle

If phy is not defined in DT (eg. on rk3399), generic_phy_get_by_name
will return -ENODATA. Handle that case correctly.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
drivers/video/rockchip/dw_mipi_dsi_rockchip.c