提交 28bcd199 编写于 作者: C Chandrabhanu Mahapatra 提交者: Tomi Valkeinen

OMAPDSS: Remove dss_debug variable

All the debug prints have been replaced with pr_debug(). Thus, the dependency on
dss_debug variable is replaced with dyndbg in dynamic debugging mode and DEBUG
flag otherwise. So, the dss_debug variable is removed along with checks for
DEBUG flag.
Signed-off-by: NChandrabhanu Mahapatra <cmahapatra@ti.com>
Reviewed-by: NSumit Semwal <sumit.semwal@ti.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 f30be7d3
...@@ -53,11 +53,6 @@ static char *def_disp_name; ...@@ -53,11 +53,6 @@ static char *def_disp_name;
module_param_named(def_disp, def_disp_name, charp, 0); module_param_named(def_disp, def_disp_name, charp, 0);
MODULE_PARM_DESC(def_disp, "default display name"); MODULE_PARM_DESC(def_disp, "default display name");
#ifdef DEBUG
bool dss_debug;
module_param_named(debug, dss_debug, bool, 0644);
#endif
const char *dss_get_default_display_name(void) const char *dss_get_default_display_name(void)
{ {
return core.default_display_name; return core.default_display_name;
......
...@@ -3669,7 +3669,6 @@ int omap_dispc_unregister_isr(omap_dispc_isr_t isr, void *arg, u32 mask) ...@@ -3669,7 +3669,6 @@ int omap_dispc_unregister_isr(omap_dispc_isr_t isr, void *arg, u32 mask)
} }
EXPORT_SYMBOL(omap_dispc_unregister_isr); EXPORT_SYMBOL(omap_dispc_unregister_isr);
#ifdef DEBUG
static void print_irq_status(u32 status) static void print_irq_status(u32 status)
{ {
if ((status & dispc.irq_error_mask) == 0) if ((status & dispc.irq_error_mask) == 0)
...@@ -3690,7 +3689,6 @@ static void print_irq_status(u32 status) ...@@ -3690,7 +3689,6 @@ static void print_irq_status(u32 status)
dss_has_feature(FEAT_MGR_LCD3) ? PIS(SYNC_LOST3) : ""); dss_has_feature(FEAT_MGR_LCD3) ? PIS(SYNC_LOST3) : "");
#undef PIS #undef PIS
} }
#endif
/* Called from dss.c. Note that we don't touch clocks here, /* Called from dss.c. Note that we don't touch clocks here,
* but we presume they are on because we got an IRQ. However, * but we presume they are on because we got an IRQ. However,
...@@ -3723,10 +3721,8 @@ static irqreturn_t omap_dispc_irq_handler(int irq, void *arg) ...@@ -3723,10 +3721,8 @@ static irqreturn_t omap_dispc_irq_handler(int irq, void *arg)
spin_unlock(&dispc.irq_stats_lock); spin_unlock(&dispc.irq_stats_lock);
#endif #endif
#ifdef DEBUG print_irq_status(irqstatus);
if (dss_debug)
print_irq_status(irqstatus);
#endif
/* Ack the interrupt. Do it here before clocks are possibly turned /* Ack the interrupt. Do it here before clocks are possibly turned
* off */ * off */
dispc_write_reg(DISPC_IRQSTATUS, irqstatus); dispc_write_reg(DISPC_IRQSTATUS, irqstatus);
......
...@@ -1095,15 +1095,11 @@ static inline void dsi_enable_pll_clock(struct platform_device *dsidev, ...@@ -1095,15 +1095,11 @@ static inline void dsi_enable_pll_clock(struct platform_device *dsidev,
} }
} }
#ifdef DEBUG
static void _dsi_print_reset_status(struct platform_device *dsidev) static void _dsi_print_reset_status(struct platform_device *dsidev)
{ {
u32 l; u32 l;
int b0, b1, b2; int b0, b1, b2;
if (!dss_debug)
return;
/* A dummy read using the SCP interface to any DSIPHY register is /* A dummy read using the SCP interface to any DSIPHY register is
* required after DSIPHY reset to complete the reset of the DSI complex * required after DSIPHY reset to complete the reset of the DSI complex
* I/O. */ * I/O. */
...@@ -1134,9 +1130,6 @@ static void _dsi_print_reset_status(struct platform_device *dsidev) ...@@ -1134,9 +1130,6 @@ static void _dsi_print_reset_status(struct platform_device *dsidev)
#undef DSI_FLD_GET #undef DSI_FLD_GET
} }
#else
#define _dsi_print_reset_status(x)
#endif
static inline int dsi_if_enable(struct platform_device *dsidev, bool enable) static inline int dsi_if_enable(struct platform_device *dsidev, bool enable)
{ {
......
...@@ -23,10 +23,6 @@ ...@@ -23,10 +23,6 @@
#ifndef __OMAP2_DSS_H #ifndef __OMAP2_DSS_H
#define __OMAP2_DSS_H #define __OMAP2_DSS_H
#ifdef DEBUG
extern bool dss_debug;
#endif
#ifdef pr_fmt #ifdef pr_fmt
#undef pr_fmt #undef pr_fmt
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册