projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50680d1
)
drm/xe: use pdev_to_xe_device() instead of pci_get_drvdata() directly
author
Jani Nikula
<jani.nikula@intel.com>
Mon, 12 Aug 2024 10:30:20 +0000
(13:30 +0300)
committer
Jani Nikula
<jani.nikula@intel.com>
Tue, 13 Aug 2024 09:11:43 +0000
(12:11 +0300)
We have a helper for converting pci device to xe device, use it.
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/1b87c2e56200e001ce3a5d2f4a93eb26b294df32.1723458544.git.jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/xe/xe_pci.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/xe_pci.c
b/drivers/gpu/drm/xe/xe_pci.c
index
3c4a3c9
..
bc575bb
100644
(file)
--- 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 = p
ci_get_drvdata
(pdev);
+ xe = p
dev_to_xe_device
(pdev);
if (!xe) /* driver load aborted, nothing to cleanup */
return;