Commit 2de955d0 authored by Daniel Vetter's avatar Daniel Vetter

drm/vboxvideo: drop DRM_MTRR_WC #define

Doesn't apply to upstream kernels since a rather long time.
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
Cc: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200415074034.175360-3-daniel.vetter@ffwll.ch
parent b0b5849e
...@@ -24,25 +24,13 @@ int vbox_mm_init(struct vbox_private *vbox) ...@@ -24,25 +24,13 @@ int vbox_mm_init(struct vbox_private *vbox)
return ret; return ret;
} }
#ifdef DRM_MTRR_WC
vbox->fb_mtrr = drm_mtrr_add(pci_resource_start(dev->pdev, 0),
pci_resource_len(dev->pdev, 0),
DRM_MTRR_WC);
#else
vbox->fb_mtrr = arch_phys_wc_add(pci_resource_start(dev->pdev, 0), vbox->fb_mtrr = arch_phys_wc_add(pci_resource_start(dev->pdev, 0),
pci_resource_len(dev->pdev, 0)); pci_resource_len(dev->pdev, 0));
#endif
return 0; return 0;
} }
void vbox_mm_fini(struct vbox_private *vbox) void vbox_mm_fini(struct vbox_private *vbox)
{ {
#ifdef DRM_MTRR_WC
drm_mtrr_del(vbox->fb_mtrr,
pci_resource_start(vbox->ddev.pdev, 0),
pci_resource_len(vbox->ddev.pdev, 0), DRM_MTRR_WC);
#else
arch_phys_wc_del(vbox->fb_mtrr); arch_phys_wc_del(vbox->fb_mtrr);
#endif
drm_vram_helper_release_mm(&vbox->ddev); drm_vram_helper_release_mm(&vbox->ddev);
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment