[Openchrome-devel] [PATCH] fix wrong arch_phys_wc_add instead of arch_phys_wc_del
Thomas Schlichter
thomas.schlichter at web.de
Fri Jun 7 14:44:05 PDT 2013
Dear James,
the commit http://cgit.freedesktop.org/openchrome/drm-openchrome/commit/?id=ba0b86854415501031f21548e0f66a1f8dd82e7b accidentally
changed a mtrr_del() to arch_phys_wc_add() instead of a arch_phys_wc_del().
The patch below should hopefully fix this.
Kind regards,
Thomas
diff --git a/drivers/gpu/drm/via/via_drv.c b/drivers/gpu/drm/via/via_drv.c
index 6476afd..33eaadc 100644
--- a/drivers/gpu/drm/via/via_drv.c
+++ b/drivers/gpu/drm/via/via_drv.c
@@ -304,7 +304,7 @@ static int via_driver_unload(struct drm_device *dev)
vram_start = pci_resource_start(dev->pdev, 2);
else
vram_start = pci_resource_start(dev->pdev, 0);
- dev_priv->vram_mtrr = arch_phys_wc_add(vram_start, size);
+ arch_phys_wc_del(dev_priv->vram_mtrr);
}
ttm_global_fini(&dev_priv->mem_global_ref,
More information about the Openchrome-devel
mailing list