]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4133c2c2a09e2ef1708e930bf2f324cbba026da3
tree0f6b54c9093a52ceea73c8130bf4ad0efef5a100
parent4d03717c749357f2a3cf758f84d393c4e7458227
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