OMAPDSS: add THIS_MODULE owner to DSS outputs
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 3 May 2013 08:42:18 +0000 (11:42 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 17 Jun 2013 11:00:53 +0000 (14:00 +0300)
Setup the owner field for DSS output's omap_dss_device so that module
refcounting works.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dpi.c
drivers/video/omap2/dss/dsi.c
drivers/video/omap2/dss/hdmi.c
drivers/video/omap2/dss/rfbi.c
drivers/video/omap2/dss/sdi.c
drivers/video/omap2/dss/venc.c

index 482b918757bebd2d4970b0ae1f50303a31b3de22..892a2b207ee425b94670aae557fb7751cf04a609 100644 (file)
@@ -687,6 +687,7 @@ static void dpi_init_output(struct platform_device *pdev)
        out->output_type = OMAP_DISPLAY_TYPE_DPI;
        out->name = "dpi.0";
        out->dispc_channel = dpi_get_channel();
+       out->owner = THIS_MODULE;
 
        dss_register_output(out);
 }
index 88780731f7a8694125cd703cdbae12dde4837396..d6b019faed23f4e1856faa1e4b7cad0d8eead4ed 100644 (file)
@@ -5424,6 +5424,7 @@ static void dsi_init_output(struct platform_device *dsidev)
        out->output_type = OMAP_DISPLAY_TYPE_DSI;
        out->name = dsi->module_id == 0 ? "dsi.0" : "dsi.1";
        out->dispc_channel = dsi_get_channel(dsi->module_id);
+       out->owner = THIS_MODULE;
 
        dss_register_output(out);
 }
index 1c1c1eee9990be2e77844e87c0328fcadfa133ef..0f93903d440932708f2b5bc68db795fbb6e3f656 100644 (file)
@@ -1042,6 +1042,7 @@ static void hdmi_init_output(struct platform_device *pdev)
        out->output_type = OMAP_DISPLAY_TYPE_HDMI;
        out->name = "hdmi.0";
        out->dispc_channel = OMAP_DSS_CHANNEL_DIGIT;
+       out->owner = THIS_MODULE;
 
        dss_register_output(out);
 }
index 35836eb73a621ae17b15fb8b036179ec38fab9ed..f18c9466849bdfbb646245dd8dd79100b96b74c9 100644 (file)
@@ -1020,6 +1020,7 @@ static void rfbi_init_output(struct platform_device *pdev)
        out->output_type = OMAP_DISPLAY_TYPE_DBI;
        out->name = "rfbi.0";
        out->dispc_channel = OMAP_DSS_CHANNEL_LCD;
+       out->owner = THIS_MODULE;
 
        dss_register_output(out);
 }
index 5e81de58d932d4bb73c948c8d0fbe487a212ee9f..bcb75f5d537325276779a46ec92e12d68a397cf9 100644 (file)
@@ -342,6 +342,7 @@ static void sdi_init_output(struct platform_device *pdev)
        out->output_type = OMAP_DISPLAY_TYPE_SDI;
        out->name = "sdi.0";
        out->dispc_channel = OMAP_DSS_CHANNEL_LCD;
+       out->owner = THIS_MODULE;
 
        dss_register_output(out);
 }
index 96c49bc7bdb4fb225f754d8e0a0634a746c38053..4a8a214067ab2e57dbc71abe218f037a6305d52b 100644 (file)
@@ -792,6 +792,7 @@ static void venc_init_output(struct platform_device *pdev)
        out->output_type = OMAP_DISPLAY_TYPE_VENC;
        out->name = "venc.0";
        out->dispc_channel = OMAP_DSS_CHANNEL_DIGIT;
+       out->owner = THIS_MODULE;
 
        dss_register_output(out);
 }