drm: Mark IRQ_BUSID ioctl as legacy
authorThomas Zimmermann <tzimmermann@suse.de>
Sun, 16 May 2021 19:51:35 +0000 (21:51 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 17 May 2021 19:19:48 +0000 (21:19 +0200)
commit644adc3d0ff05f49fae9a7549e27dfd7e9a5afe5
tree17805c46840c44a7fe1bbd7ab201f70c2f7623c1
parent614b27402285f9154816ea149c90b9d74de6b4df
drm: Mark IRQ_BUSID ioctl as legacy

The functionality is only implemented for legacy drivers. Mark the ioctl
as legacy and move the code behind CONFIG_DRM_LEGACY. If legacy drivers
are disabled, the ioctl call now returns -EINVAL instead of -EOPNOTSUPP.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20210516195135.3755-1-tzimmermann@suse.de
drivers/gpu/drm/drm_internal.h
drivers/gpu/drm/drm_ioctl.c
drivers/gpu/drm/drm_legacy.h
drivers/gpu/drm/drm_pci.c