diff options
| author | Arnd Bergmann <[email protected]> | 2018-09-26 19:38:36 +0000 |
|---|---|---|
| committer | Noralf Trønnes <[email protected]> | 2018-10-05 10:09:20 +0000 |
| commit | 8c1d1bb0f0bdebd174a6188ca345e44a03becda5 (patch) | |
| tree | 23ff16c6d2efa916c3c36135f317483e5bfbc097 /drivers/gpu/drm/imx/imx-drm-core.c | |
| parent | drm/fb_helper: Allow leaking fbdev smem_start (diff) | |
| download | kernel-8c1d1bb0f0bdebd174a6188ca345e44a03becda5.tar.gz kernel-8c1d1bb0f0bdebd174a6188ca345e44a03becda5.zip | |
drm/imx: fix build failure without CONFIG_DRM_FBDEV_EMULATION
The variable is declared in an #ifdef section, but the user is
now unconditional, which leads to a build failure:
drivers/gpu/drm/imx/imx-drm-core.c: In function 'imx_drm_bind':
drivers/gpu/drm/imx/imx-drm-core.c:264:6: error: 'legacyfb_depth' undeclared (first use in this function); did you mean 'lockdep_depth'?
Remove the remaining #ifdef as well.
Fixes: f53705fd9803 ("drm/imx: Use drm_fbdev_generic_setup()")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Noralf Trønnes <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/imx/imx-drm-core.c')
| -rw-r--r-- | drivers/gpu/drm/imx/imx-drm-core.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/imx/imx-drm-core.c b/drivers/gpu/drm/imx/imx-drm-core.c index a70f3131a377..0e6942f21a4e 100644 --- a/drivers/gpu/drm/imx/imx-drm-core.c +++ b/drivers/gpu/drm/imx/imx-drm-core.c @@ -35,10 +35,8 @@ #define MAX_CRTC 4 -#if IS_ENABLED(CONFIG_DRM_FBDEV_EMULATION) static int legacyfb_depth = 16; module_param(legacyfb_depth, int, 0444); -#endif DEFINE_DRM_GEM_CMA_FOPS(imx_drm_driver_fops); |
