linux/drivers/gpu/drm/pl111
Arnd Bergmann 66d6dd45ee drm/pl111: fix warnings without CONFIG_ARM_AMBA
The driver is written in a way to enable compile-testing without CONFIG_ARM_AMBA,
but it just causes needless warnings:

drivers/gpu/drm/pl111/pl111_drv.c:149:26: error: 'pl111_drm_driver' defined but not used [-Werror=unused-variable]
drivers/gpu/drm/pl111/pl111_drv.c:81:12: error: 'pl111_modeset_init' defined but not used [-Werror=unused-function]

This unhides the probe/remove functions again and just leaves the driver
object as unused when CONFIG_ARM_AMBA is disabled, with a __maybe_unused
annotation to shut up the warning.

Fixes: bed41005e6 ("drm/pl111: Initial drm/kms driver for pl111")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: http://patchwork.freedesktop.org/patch/msgid/20170524155020.1777369-1-arnd@arndb.de
2017-05-31 10:50:36 -07:00
..
Kconfig drm/pl111: select DRM_PANEL 2017-05-31 09:32:32 +02:00
Makefile drm/pl111: Add a debugfs node to dump our registers. 2017-05-19 11:13:57 -07:00
pl111_connector.c
pl111_debugfs.c drm/pl111: Add a debugfs node to dump our registers. 2017-05-19 11:13:57 -07:00
pl111_display.c drm/pl111: make structure pl111_display_funcs static 2017-05-19 11:12:38 -07:00
pl111_drm.h drm/pl111: Add a debugfs node to dump our registers. 2017-05-19 11:13:57 -07:00
pl111_drv.c drm/pl111: fix warnings without CONFIG_ARM_AMBA 2017-05-31 10:50:36 -07:00