Commit ec0796e6 authored by Jani Nikula's avatar Jani Nikula
Browse files

drm/xe: use pdev_to_xe_device() instead of pci_get_drvdata() directly

parent 50680d16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -747,7 +747,7 @@ static void xe_pci_remove(struct pci_dev *pdev)
{
	struct xe_device *xe;

	xe = pci_get_drvdata(pdev);
	xe = pdev_to_xe_device(pdev);
	if (!xe) /* driver load aborted, nothing to cleanup */
		return;