drm/exynos: Fix build breakage on !DRM_EXYNOS_FIMD
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Thu, 7 May 2015 00:04:44 +0000 (09:04 +0900)
committerInki Dae <daeinki@gmail.com>
Tue, 19 May 2015 13:50:53 +0000 (22:50 +0900)
commit48107d7b0db180155b19b2cf083517014289a079
treea3c67f630e239b09daf4269b0b5d5b16fdb44fb6
parentd6b163026c5a6f2e49bc59261b69d44465ebddb4
drm/exynos: Fix build breakage on !DRM_EXYNOS_FIMD

Disabling the CONFIG_DRM_EXYNOS_FIMD (e.g. by enabling of CONFIG_FB_S3C)
leads to build error:

drivers/built-in.o: In function `exynos_dp_dpms':
binder.c:(.text+0xd6a840): undefined reference to `fimd_dp_clock_enable'
binder.c:(.text+0xd6ab54): undefined reference to `fimd_dp_clock_enable'

Fix this by changing direct call to fimd_dp_clock_enable() into optional
call to exynos_drm_crtc_ops->clock_enable(). Only the DRM_EXYNOS_FIMD
implements this op.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_dp_core.c
drivers/gpu/drm/exynos/exynos_drm_drv.h
drivers/gpu/drm/exynos/exynos_drm_fimd.c
drivers/gpu/drm/exynos/exynos_drm_fimd.h [deleted file]