diff options
| author | Vasant Hegde <vasant.hegde@amd.com> | 2022-07-06 17:07:51 +0530 |
|---|---|---|
| committer | Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> | 2022-07-13 17:27:19 -0500 |
| commit | d3747c8748f8f8744f4d16cfbc8cb2a9242a9ba4 (patch) | |
| tree | 15c64b2082ffe97fc0e679869ec52dc1089a1d88 /include/uapi/linux/errqueue.h | |
| parent | cc4a28f7f16403fb24ec48c62f2268487fafc95c (diff) | |
| download | cachepc-linux-d3747c8748f8f8744f4d16cfbc8cb2a9242a9ba4.tar.gz cachepc-linux-d3747c8748f8f8744f4d16cfbc8cb2a9242a9ba4.zip | |
iommu/amd: Update struct iommu_dev_data definition
struct iommu_dev_data contains member "pdev" to point to pci_dev. This is
valid for only PCI devices and for other devices this will be NULL. This
causes unnecessary "pdev != NULL" check at various places.
Replace "struct pci_dev" member with "struct device" and use to_pci_dev()
to get pci device reference as needed. Also adjust setup_aliases() and
clone_aliases() function.
No functional change intended.
Co-developed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20220706113825.25582-2-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/uapi/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
