summaryrefslogtreecommitdiff
path: root/linux-core/drm_stub.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-05-16 17:37:10 +0000
committerIan Romanick <idr@us.ibm.com>2005-05-16 17:37:10 +0000
commite051cd19c00ed28997ff6fece0d1d4308b171229 (patch)
treeac705c230e9f7a5c1c6dcc5144cc2fc3d6fdbeb3 /linux-core/drm_stub.c
parentbd72c6990f22381af61f62bffe70619f726d5923 (diff)
Added device_is_agp callback to drm_driver. This function is called by the
platform-specific drm_device_is_agp function. Added implementation of this function the the Linux-specific portion of the MGA driver to detect PCI G450 cards. Added code to the Linux-specific portion of the generic DRM layer to not initialize AGP infrastructure if the card is not AGP (this matches what already existed in BSD). Bumped the driver date and the driver patch-level for MGA. This mostly fixes bugzilla #3248. The BSD side still needs an implementation of mga_driver_device_is_agp.
Diffstat (limited to 'linux-core/drm_stub.c')
-rw-r--r--linux-core/drm_stub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c
index a3cc5667..338996d6 100644
--- a/linux-core/drm_stub.c
+++ b/linux-core/drm_stub.c
@@ -99,7 +99,8 @@ static int fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
goto error_out_unreg;
if (drm_core_has_AGP(dev)) {
- dev->agp = drm_agp_init(dev);
+ if (drm_device_is_agp(dev))
+ dev->agp = drm_agp_init(dev);
if (drm_core_check_feature(dev, DRIVER_REQUIRE_AGP)
&& (dev->agp == NULL)) {
DRM_ERROR("Cannot initialize the agpgart module.\n");