drm/fsl-dcu: add COMMON_CLK dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 2 May 2016 11:00:26 +0000 (13:00 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 May 2016 08:17:37 +0000 (10:17 +0200)
commit76396df228db0d259fe8e1046fc9a1c3794f7379
tree8bd012ccc0da93607f7dd76c0883be9602dfc214
parentfcbcb3b0cf9f73742426877ff56d63f12fd92c12
drm/fsl-dcu: add COMMON_CLK dependency

The fsl dcu now uses the clk-provider interfaces, which are not available
when CONFIG_COMMON_CLK is disabled:

drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c: In function 'fsl_dcu_drm_probe':
drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c:362:20: error: implicit declaration of function '__clk_get_name' [-Werror=implicit-function-declaration]
  pix_clk_in_name = __clk_get_name(pix_clk_in);

This adds a Kconfig dependency to prevent the driver from being enabled
in this case.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 2d701449bce1 ("drm/fsl-dcu: use common clock framework for pixel clock divider")
Acked-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1462186839-2224021-1-git-send-email-arnd@arndb.de
drivers/gpu/drm/fsl-dcu/Kconfig