drm/i915: Remove references to struct drm_device.pdev
[linux-2.6-microblaze.git] / drivers / gpu / drm / i915 / intel_runtime_pm.c
index 153ca9e..4970ef0 100644 (file)
@@ -625,7 +625,7 @@ void intel_runtime_pm_init_early(struct intel_runtime_pm *rpm)
 {
        struct drm_i915_private *i915 =
                        container_of(rpm, struct drm_i915_private, runtime_pm);
-       struct pci_dev *pdev = i915->drm.pdev;
+       struct pci_dev *pdev = to_pci_dev(i915->drm.dev);
        struct device *kdev = &pdev->dev;
 
        rpm->kdev = kdev;