diff options
Diffstat (limited to 'drivers/gpu/drm/sti/sti_hdmi.c')
-rw-r--r-- | drivers/gpu/drm/sti/sti_hdmi.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/gpu/drm/sti/sti_hdmi.c b/drivers/gpu/drm/sti/sti_hdmi.c index 284e541d970d..b22968c08d1f 100644 --- a/drivers/gpu/drm/sti/sti_hdmi.c +++ b/drivers/gpu/drm/sti/sti_hdmi.c | |||
@@ -298,7 +298,6 @@ static int hdmi_avi_infoframe_config(struct sti_hdmi *hdmi) | |||
298 | hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD2(HDMI_IFRAME_SLOT_AVI)); | 298 | hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD2(HDMI_IFRAME_SLOT_AVI)); |
299 | 299 | ||
300 | val = frame[0xC]; | 300 | val = frame[0xC]; |
301 | val |= frame[0xD] << 8; | ||
302 | hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD3(HDMI_IFRAME_SLOT_AVI)); | 301 | hdmi_write(hdmi, val, HDMI_SW_DI_N_PKT_WORD3(HDMI_IFRAME_SLOT_AVI)); |
303 | 302 | ||
304 | /* Enable transmission slot for AVI infoframe | 303 | /* Enable transmission slot for AVI infoframe |
@@ -677,7 +676,7 @@ static const struct component_ops sti_hdmi_ops = { | |||
677 | .unbind = sti_hdmi_unbind, | 676 | .unbind = sti_hdmi_unbind, |
678 | }; | 677 | }; |
679 | 678 | ||
680 | static struct of_device_id hdmi_of_match[] = { | 679 | static const struct of_device_id hdmi_of_match[] = { |
681 | { | 680 | { |
682 | .compatible = "st,stih416-hdmi", | 681 | .compatible = "st,stih416-hdmi", |
683 | .data = &tx3g0c55phy_ops, | 682 | .data = &tx3g0c55phy_ops, |
@@ -713,8 +712,8 @@ static int sti_hdmi_probe(struct platform_device *pdev) | |||
713 | return -ENOMEM; | 712 | return -ENOMEM; |
714 | } | 713 | } |
715 | hdmi->regs = devm_ioremap_nocache(dev, res->start, resource_size(res)); | 714 | hdmi->regs = devm_ioremap_nocache(dev, res->start, resource_size(res)); |
716 | if (IS_ERR(hdmi->regs)) | 715 | if (!hdmi->regs) |
717 | return PTR_ERR(hdmi->regs); | 716 | return -ENOMEM; |
718 | 717 | ||
719 | if (of_device_is_compatible(np, "st,stih416-hdmi")) { | 718 | if (of_device_is_compatible(np, "st,stih416-hdmi")) { |
720 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, | 719 | res = platform_get_resource_byname(pdev, IORESOURCE_MEM, |
@@ -725,8 +724,8 @@ static int sti_hdmi_probe(struct platform_device *pdev) | |||
725 | } | 724 | } |
726 | hdmi->syscfg = devm_ioremap_nocache(dev, res->start, | 725 | hdmi->syscfg = devm_ioremap_nocache(dev, res->start, |
727 | resource_size(res)); | 726 | resource_size(res)); |
728 | if (IS_ERR(hdmi->syscfg)) | 727 | if (!hdmi->syscfg) |
729 | return PTR_ERR(hdmi->syscfg); | 728 | return -ENOMEM; |
730 | 729 | ||
731 | } | 730 | } |
732 | 731 | ||