From 7888839e258ee114ca2faabbf741c5001ff668ad Mon Sep 17 00:00:00 2001 From: Ricardo Neri Date: Tue, 6 Nov 2012 00:19:13 -0600 Subject: [PATCH] OMAPDSS: HDMI: Make panel return dssdev register errors Do not assume blindly that the DSS driver was registered successfully. Signed-off-by: Ricardo Neri Signed-off-by: Tomi Valkeinen --- drivers/video/omap2/dss/hdmi_panel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/omap2/dss/hdmi_panel.c b/drivers/video/omap2/dss/hdmi_panel.c index a385b69a018e..dfb8eda81b61 100644 --- a/drivers/video/omap2/dss/hdmi_panel.c +++ b/drivers/video/omap2/dss/hdmi_panel.c @@ -404,9 +404,7 @@ int hdmi_panel_init(void) spin_lock_init(&hdmi.audio_lock); #endif - omap_dss_register_driver(&hdmi_driver); - - return 0; + return omap_dss_register_driver(&hdmi_driver); } void hdmi_panel_exit(void) -- 2.20.1