diff options
-rw-r--r-- | drivers/char/drm/via_dma.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/char/drm/via_dma.c b/drivers/char/drm/via_dma.c index 2f72cbefc2ff..c0539c6299cf 100644 --- a/drivers/char/drm/via_dma.c +++ b/drivers/char/drm/via_dma.c | |||
@@ -190,6 +190,11 @@ static int via_initialize(drm_device_t * dev, | |||
190 | return DRM_ERR(EFAULT); | 190 | return DRM_ERR(EFAULT); |
191 | } | 191 | } |
192 | 192 | ||
193 | if (dev_priv->chipset == VIA_DX9_0) { | ||
194 | DRM_ERROR("AGP DMA is not supported on this chip\n"); | ||
195 | return DRM_ERR(EINVAL); | ||
196 | } | ||
197 | |||
193 | dev_priv->ring.map.offset = dev->agp->base + init->offset; | 198 | dev_priv->ring.map.offset = dev->agp->base + init->offset; |
194 | dev_priv->ring.map.size = init->size; | 199 | dev_priv->ring.map.size = init->size; |
195 | dev_priv->ring.map.type = 0; | 200 | dev_priv->ring.map.type = 0; |