mirror of https://gitee.com/openkylin/linux.git
66d6dd45ee
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
pl111_connector.c | ||
pl111_debugfs.c | ||
pl111_display.c | ||
pl111_drm.h | ||
pl111_drv.c |