]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Fix non-debugfs builds
authorArnd Bergmann <arnd@arndb.de>
Mon, 18 Dec 2017 13:44:46 +0000 (14:44 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 21 Dec 2017 13:52:38 +0000 (14:52 +0100)
commitadf383a4b8acc013ae527bc769e93e7da7c5f7eb
tree16c94e36c5490177b27676b46df759db3fa92eb5
parentfafe457438b89e5b1e48005c63b2488df729c86e
drm/tegra: Fix non-debugfs builds

The new debugfs registration fails to build when CONFIG_DEBUGFS is
disabled, because the drm_crtc structure is lacking a member in that
configuration:

drivers/gpu/drm/tegra/dc.c: In function 'tegra_dc_late_register':
drivers/gpu/drm/tegra/dc.c:1204:28: error: 'struct drm_crtc' has no member named 'debugfs_entry'

Without CONFIG_DEBUGFS, the rest of the function already degrades
into nothing, so we just avoid the one assignment.

Fixes: 01c0f76db6ac ("drm/tegra: dc: Register debugfs in ->late_register()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/dc.c