return;
}
+ pci_set_drvdata(dev->pdev, dev_priv);
+
/* Device parameters start as a copy of module parameters. */
i915_params_copy(&dev_priv->params, &i915_modparams);
dev_priv->params.request_timeout_ms = 0;
task_set(&rdev->switchtask, radeondrm_doswitch, ri);
- /*
- * in linux via radeon_pci_probe -> drm_get_pci_dev -> drm_dev_register
- */
- drm_dev_register(rdev->ddev, rdev->flags);
+ /* from linux radeon_pci_probe() */
+
+ pci_set_drvdata(dev->pdev, dev);
+
+ drm_dev_register(dev, rdev->flags);
radeon_fbdev_setup(rdev);