提交 606ae486 编写于 作者: T Tomi Valkeinen

OMAPDSS: reorder uninit calls

We have a list of function pointers to dss submodule uninit functions.
It makes sense to do the uninit in the reverse order to init, but that
is not currently the case.

This patch reorders the uninit calls to be the reverse of init order.
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
上级 ede92695
...@@ -269,26 +269,26 @@ static int (*dss_output_drv_reg_funcs[])(void) __initdata = { ...@@ -269,26 +269,26 @@ static int (*dss_output_drv_reg_funcs[])(void) __initdata = {
}; };
static void (*dss_output_drv_unreg_funcs[])(void) __exitdata = { static void (*dss_output_drv_unreg_funcs[])(void) __exitdata = {
#ifdef CONFIG_OMAP2_DSS_DSI #ifdef CONFIG_OMAP5_DSS_HDMI
dsi_uninit_platform_driver, hdmi5_uninit_platform_driver,
#endif #endif
#ifdef CONFIG_OMAP2_DSS_DPI #ifdef CONFIG_OMAP4_DSS_HDMI
dpi_uninit_platform_driver, hdmi4_uninit_platform_driver,
#endif #endif
#ifdef CONFIG_OMAP2_DSS_SDI #ifdef CONFIG_OMAP2_DSS_VENC
sdi_uninit_platform_driver, venc_uninit_platform_driver,
#endif #endif
#ifdef CONFIG_OMAP2_DSS_RFBI #ifdef CONFIG_OMAP2_DSS_RFBI
rfbi_uninit_platform_driver, rfbi_uninit_platform_driver,
#endif #endif
#ifdef CONFIG_OMAP2_DSS_VENC #ifdef CONFIG_OMAP2_DSS_SDI
venc_uninit_platform_driver, sdi_uninit_platform_driver,
#endif #endif
#ifdef CONFIG_OMAP4_DSS_HDMI #ifdef CONFIG_OMAP2_DSS_DPI
hdmi4_uninit_platform_driver, dpi_uninit_platform_driver,
#endif #endif
#ifdef CONFIG_OMAP5_DSS_HDMI #ifdef CONFIG_OMAP2_DSS_DSI
hdmi5_uninit_platform_driver, dsi_uninit_platform_driver,
#endif #endif
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册