drm/omap: fix compile error when debugfs is disabled
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 14 Mar 2018 08:23:52 +0000 (10:23 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 14 Mar 2018 08:39:50 +0000 (10:39 +0200)
commit83df2d4ed559442cdb5a1364c69aef3e682dceb0
tree0f6b54c9093a52ceea73c8130bf4ad0efef5a100
parentc39bbb903ce337a3f6a7fe0ac8d30e0876699fc2
drm/omap: fix compile error when debugfs is disabled

When compiling with CONFIG_OMAP2_DSS_DEBUGFS disabled, build fails due
to:

drivers/gpu/drm/omapdrm/dss/dss.c:1474:10: error: ‘dss_debug_dump_clocks’ undeclared (first use in this function); did you mean ‘dispc_dump_clocks’?
          dss_debug_dump_clocks, dss);
          ^~~~~~~~~~~~~~~~~~~~~
          dispc_dump_clocks

Fix this by moving the required functions outside #if
defined(CONFIG_OMAP2_DSS_DEBUGFS).

In the long term, we perhaps want to try to get all the debugfs support
left out if debugfs is not enabled.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/dss.c