]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
OMAP: DSS2: fix irq-stats compilation
authorTomi Valkeinen <tomi.valkeinen@nokia.com>
Mon, 8 Feb 2010 10:19:46 +0000 (12:19 +0200)
committerTomi Valkeinen <tomi.valkeinen@nokia.com>
Mon, 15 Feb 2010 13:14:39 +0000 (15:14 +0200)
Fix compilation of the CONFIG_OMAP2_DSS_COLLECT_IRQ_STATS feature.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
drivers/video/omap2/dss/core.c
drivers/video/omap2/dss/dispc.c

index 791e1cb7c0bcd4bf2fd20cc46fc78617b12cc268..5939da9cf021e9192f0ae5fa8b8bae7ccb6d9ea0 100644 (file)
@@ -446,10 +446,12 @@ static int dss_initialize_debugfs(void)
        debugfs_create_file("clk", S_IRUGO, dss_debugfs_dir,
                        &dss_debug_dump_clocks, &dss_debug_fops);
 
+#ifdef CONFIG_OMAP2_DSS_COLLECT_IRQ_STATS
        debugfs_create_file("dispc_irq", S_IRUGO, dss_debugfs_dir,
                        &dispc_dump_irqs, &dss_debug_fops);
+#endif
 
-#ifdef CONFIG_OMAP2_DSS_DSI
+#if defined(CONFIG_OMAP2_DSS_DSI) && defined(CONFIG_OMAP2_DSS_COLLECT_IRQ_STATS)
        debugfs_create_file("dsi_irq", S_IRUGO, dss_debugfs_dir,
                        &dsi_dump_irqs, &dss_debug_fops);
 #endif
index de8bfbac9e268feb2cb4c8bd8396e24962737d95..7781c65bbeba670d676422f1f2c3e607a8f3b2b7 100644 (file)
@@ -2301,8 +2301,6 @@ void dispc_dump_irqs(struct seq_file *s)
        PIS(WAKEUP);
 #undef PIS
 }
-#else
-void dispc_dump_irqs(struct seq_file *s) { }
 #endif
 
 void dispc_dump_regs(struct seq_file *s)