video: rockchip: dw_mipi_dsi: Fix external phy existence check
authorOndrej Jirman <megi@xff.cz>
Mon, 22 May 2023 21:47:03 +0000 (23:47 +0200)
committerAnatolij Gustschin <agust@denx.de>
Fri, 14 Jul 2023 16:19:08 +0000 (18:19 +0200)
commitb7d8d40346f29036e0b3a4e666e9c6ed14c14c4b
treee5c0da91fa4e2bfaf42e9ee77ba49fed0e708a71
parente62f2a622b4c4f8ecd9939a2afbfed5ad02e047c
video: rockchip: dw_mipi_dsi: Fix external phy existence check

&priv->phy is always true. Compiler warns about this loudly.

Use a propper check for phy device allocation. Without this fix
using this driver with SoC that doesn't use external phy (eg. RK3399)
doesn't work.

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