unstub i915_driver_hw_remove()
authorjsg <jsg@openbsd.org>
Wed, 17 Jan 2024 06:28:15 +0000 (06:28 +0000)
committerjsg <jsg@openbsd.org>
Wed, 17 Jan 2024 06:28:15 +0000 (06:28 +0000)
sys/dev/pci/drm/i915/i915_driver.c

index dd41f6c..059fdca 100644 (file)
@@ -580,9 +580,7 @@ err_perf:
  */
 static void i915_driver_hw_remove(struct drm_i915_private *dev_priv)
 {
-       STUB();
-#ifdef notyet
-       struct pci_dev *pdev = to_pci_dev(dev_priv->drm.dev);
+       struct pci_dev *pdev = dev_priv->drm.pdev;
 
        i915_perf_fini(dev_priv);
 
@@ -590,7 +588,6 @@ static void i915_driver_hw_remove(struct drm_i915_private *dev_priv)
 
        if (pdev->msi_enabled)
                pci_disable_msi(pdev);
-#endif
 }
 
 /**