diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-12-11 05:34:33 -0500 |
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2013-12-17 20:17:53 -0500 |
| commit | 24986ee06929a8de3a5b4722ccadf0b85c175264 (patch) | |
| tree | 96baab74b307b9566db0f493dc63de0b031ad6c2 /drivers/gpu/drm/i810 | |
| parent | 5ec467a80301fccb21eaf4bcc04cd0f4536a30d6 (diff) | |
drm: kill DRIVER_REQUIRE_AGP
Only the two intel drivers need this and they can easily check for
working agp support in their driver ->load callbacks.
This is the only reason why agp initialization could fail, so allows
us to rip out a bit of error handling code in the next patch.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i810')
| -rw-r--r-- | drivers/gpu/drm/i810/i810_dma.c | 4 | ||||
| -rw-r--r-- | drivers/gpu/drm/i810/i810_drv.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i810/i810_dma.c b/drivers/gpu/drm/i810/i810_dma.c index 249fdff305c6..aeace37415aa 100644 --- a/drivers/gpu/drm/i810/i810_dma.c +++ b/drivers/gpu/drm/i810/i810_dma.c | |||
| @@ -1193,6 +1193,10 @@ static int i810_flip_bufs(struct drm_device *dev, void *data, | |||
| 1193 | 1193 | ||
| 1194 | int i810_driver_load(struct drm_device *dev, unsigned long flags) | 1194 | int i810_driver_load(struct drm_device *dev, unsigned long flags) |
| 1195 | { | 1195 | { |
| 1196 | /* Our userspace depends upon the agp mapping support. */ | ||
| 1197 | if (!dev->agp) | ||
| 1198 | return -EINVAL; | ||
| 1199 | |||
| 1196 | pci_set_master(dev->pdev); | 1200 | pci_set_master(dev->pdev); |
| 1197 | 1201 | ||
| 1198 | return 0; | 1202 | return 0; |
diff --git a/drivers/gpu/drm/i810/i810_drv.c b/drivers/gpu/drm/i810/i810_drv.c index d8180d22cedd..441ccf8f5bdc 100644 --- a/drivers/gpu/drm/i810/i810_drv.c +++ b/drivers/gpu/drm/i810/i810_drv.c | |||
| @@ -57,7 +57,7 @@ static const struct file_operations i810_driver_fops = { | |||
| 57 | 57 | ||
| 58 | static struct drm_driver driver = { | 58 | static struct drm_driver driver = { |
| 59 | .driver_features = | 59 | .driver_features = |
| 60 | DRIVER_USE_AGP | DRIVER_REQUIRE_AGP | | 60 | DRIVER_USE_AGP | |
| 61 | DRIVER_HAVE_DMA, | 61 | DRIVER_HAVE_DMA, |
| 62 | .dev_priv_size = sizeof(drm_i810_buf_priv_t), | 62 | .dev_priv_size = sizeof(drm_i810_buf_priv_t), |
| 63 | .load = i810_driver_load, | 63 | .load = i810_driver_load, |
