mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user