• Tomi Valkeinen's avatar
    drm/omap: fix compile error when debugfs is disabled · 83df2d4e
    Tomi Valkeinen authored
    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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
    83df2d4e
dss.c 35.3 KB