mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
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>
This commit is contained in:
parent
dc3f2403c2
commit
7c5f278a03
1 changed files with 2 additions and 2 deletions
|
@ -814,9 +814,9 @@ static int dw_mipi_dsi_rockchip_probe(struct udevice *dev)
|
|||
* NULL if it's not initialized.
|
||||
*/
|
||||
ret = generic_phy_get_by_name(dev, "dphy", &priv->phy);
|
||||
if ((ret) && (ret != -ENODEV)) {
|
||||
if (ret && ret != -ENODATA) {
|
||||
dev_err(dev, "failed to get mipi dphy: %d\n", ret);
|
||||
return -EINVAL;
|
||||
return ret;
|
||||
}
|
||||
|
||||
priv->pclk = devm_clk_get(dev, "pclk");
|
||||
|
|
Loading…
Reference in a new issue