diff options
Diffstat (limited to 'linux-core/drm_stub.c')
-rw-r--r-- | linux-core/drm_stub.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c index cb6d6c69..2f9a2c32 100644 --- a/linux-core/drm_stub.c +++ b/linux-core/drm_stub.c @@ -67,9 +67,6 @@ static int fill_in_dev(drm_device_t * dev, struct pci_dev *pdev, dev->pdev = pdev; - if (drm_fb_loaded) - drm_pm_setup( dev ); - #ifdef __alpha__ dev->hose = pdev->sysdata; dev->pci_domain = dev->hose->bus->number; @@ -97,6 +94,10 @@ static int fill_in_dev(drm_device_t * dev, struct pci_dev *pdev, dev->driver = driver; + if (drm_fb_loaded) + if ((retcode = drm_pm_setup( dev ))) + goto error_out_unreg; + if (dev->driver->preinit) if ((retcode = dev->driver->preinit(dev, ent->driver_data))) goto error_out_unreg; |