--- zzzz-none-000/linux-3.10.107/drivers/gpu/drm/tdfx/tdfx_drv.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/gpu/drm/tdfx/tdfx_drv.c 2021-02-04 17:41:59.000000000 +0000 @@ -36,6 +36,7 @@ #include "tdfx_drv.h" #include +#include static struct pci_device_id pciidlist[] = { tdfx_PCI_IDS @@ -46,9 +47,8 @@ .open = drm_open, .release = drm_release, .unlocked_ioctl = drm_ioctl, - .mmap = drm_mmap, + .mmap = drm_legacy_mmap, .poll = drm_poll, - .fasync = drm_fasync, #ifdef CONFIG_COMPAT .compat_ioctl = drm_compat_ioctl, #endif @@ -56,7 +56,7 @@ }; static struct drm_driver driver = { - .driver_features = DRIVER_USE_MTRR, + .set_busid = drm_pci_set_busid, .fops = &tdfx_driver_fops, .name = DRIVER_NAME, .desc = DRIVER_DESC,