projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79b7a58
)
Move driver load call to after AGP init, in case the load routine needs AGP stuff.
author
Jesse Barnes
<jbarnes@hobbes.virtuousgeek.org>
Fri, 13 Apr 2007 01:30:36 +0000
(18:30 -0700)
committer
Jesse Barnes
<jbarnes@hobbes.virtuousgeek.org>
Fri, 13 Apr 2007 01:30:36 +0000
(18:30 -0700)
linux-core/drm_stub.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_stub.c
b/linux-core/drm_stub.c
index
f4da7da
..
13652eb
100644
(file)
--- a/
linux-core/drm_stub.c
+++ b/
linux-core/drm_stub.c
@@
-113,10
+113,6
@@
static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
dev->driver = driver;
- if (dev->driver->load)
- if ((retcode = dev->driver->load(dev, ent->driver_data)))
- goto error_out_unreg;
-
if (drm_core_has_AGP(dev)) {
if (drm_device_is_agp(dev))
dev->agp = drm_agp_init(dev);
@@
-136,6
+132,11
@@
static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
}
}
+
+ if (dev->driver->load)
+ if ((retcode = dev->driver->load(dev, ent->driver_data)))
+ goto error_out_unreg;
+
retcode = drm_ctxbitmap_init(dev);
if (retcode) {
DRM_ERROR("Cannot allocate memory for context bitmap.\n");