diff options
Diffstat (limited to 'drivers/video/omap2/dss/hdmi.c')
-rw-r--r-- | drivers/video/omap2/dss/hdmi.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/drivers/video/omap2/dss/hdmi.c b/drivers/video/omap2/dss/hdmi.c index a109934c0478..fe72746411e1 100644 --- a/drivers/video/omap2/dss/hdmi.c +++ b/drivers/video/omap2/dss/hdmi.c | |||
@@ -1094,15 +1094,19 @@ static int omapdss_hdmihw_probe(struct platform_device *pdev) | |||
1094 | 1094 | ||
1095 | dss_debugfs_create_file("hdmi", hdmi_dump_regs); | 1095 | dss_debugfs_create_file("hdmi", hdmi_dump_regs); |
1096 | 1096 | ||
1097 | r = hdmi_probe_pdata(pdev); | 1097 | if (pdev->dev.platform_data) { |
1098 | if (r) { | 1098 | r = hdmi_probe_pdata(pdev); |
1099 | hdmi_panel_exit(); | 1099 | if (r) |
1100 | hdmi_uninit_output(pdev); | 1100 | goto err_probe; |
1101 | pm_runtime_disable(&pdev->dev); | ||
1102 | return r; | ||
1103 | } | 1101 | } |
1104 | 1102 | ||
1105 | return 0; | 1103 | return 0; |
1104 | |||
1105 | err_probe: | ||
1106 | hdmi_panel_exit(); | ||
1107 | hdmi_uninit_output(pdev); | ||
1108 | pm_runtime_disable(&pdev->dev); | ||
1109 | return r; | ||
1106 | } | 1110 | } |
1107 | 1111 | ||
1108 | static int __exit hdmi_remove_child(struct device *dev, void *data) | 1112 | static int __exit hdmi_remove_child(struct device *dev, void *data) |