drm/rockchip: dw_hdmi: Compatible with two inno hdmi phy names

4.4 kernel inno hdmi phy name is "hdmi_phy".
4.19 kernel inno hdmi phy name is "hdmi".

Change-Id: Ie87aa205c89154b417887a84703ce7bd9ffb2c7f
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
Algea Cao
2019-05-30 14:34:59 +08:00
committed by Tao Huang
parent f9d1b18dda
commit cabb9735d1

View File

@@ -633,10 +633,13 @@ static int dw_hdmi_rockchip_bind(struct device *dev, struct device *master,
hdmi->phy = devm_phy_optional_get(dev, "hdmi");
if (IS_ERR(hdmi->phy)) {
ret = PTR_ERR(hdmi->phy);
if (ret != -EPROBE_DEFER)
DRM_DEV_ERROR(hdmi->dev, "failed to get phy\n");
return ret;
hdmi->phy = devm_phy_optional_get(dev, "hdmi_phy");
if (IS_ERR(hdmi->phy)) {
ret = PTR_ERR(hdmi->phy);
if (ret != -EPROBE_DEFER)
DRM_DEV_ERROR(hdmi->dev, "failed to get phy\n");
return ret;
}
}
drm_encoder_helper_add(encoder, &dw_hdmi_rockchip_encoder_helper_funcs);