From: Jani Nikula Date: Mon, 12 Aug 2024 10:30:20 +0000 (+0300) Subject: drm/xe: use pdev_to_xe_device() instead of pci_get_drvdata() directly X-Git-Tag: microblaze-v6.13~18^2~19^2~77 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=ec0796e6446352e9e4ecb1804bf470d1ca47c5f9;p=linux-2.6-microblaze.git drm/xe: use pdev_to_xe_device() instead of pci_get_drvdata() directly We have a helper for converting pci device to xe device, use it. Reviewed-by: Gustavo Sousa Link: https://patchwork.freedesktop.org/patch/msgid/1b87c2e56200e001ce3a5d2f4a93eb26b294df32.1723458544.git.jani.nikula@intel.com Signed-off-by: Jani Nikula --- diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c index 3c4a3c91377a..bc575bbee42d 100644 --- a/drivers/gpu/drm/xe/xe_pci.c +++ b/drivers/gpu/drm/xe/xe_pci.c @@ -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;