search for: qxl_pm_freeze

Displaying 1 result from an estimated 1 matches for "qxl_pm_freeze".

Did you mean: qxl_drm_freeze
2019 Jul 23
1
[PATCH] drm/qxl: Use dev_get_drvdata where possible
...atic int qxl_pm_resume(struct device *dev) static int qxl_pm_thaw(struct device *dev) { - struct pci_dev *pdev = to_pci_dev(dev); - struct drm_device *drm_dev = pci_get_drvdata(pdev); + struct drm_device *drm_dev = dev_get_drvdata(dev); return qxl_drm_resume(drm_dev, true); } static int qxl_pm_freeze(struct device *dev) { - struct pci_dev *pdev = to_pci_dev(dev); - struct drm_device *drm_dev = pci_get_drvdata(pdev); + struct drm_device *drm_dev = dev_get_drvdata(dev); return qxl_drm_freeze(drm_dev); } -- 2.20.1