diff options
| author | Vasant Hegde <vasant.hegde@amd.com> | 2022-07-06 17:07:51 +0530 |
|---|---|---|
| committer | Joerg Roedel <jroedel@suse.de> | 2022-07-07 09:37:32 +0200 |
| commit | d02674d71c5a625e5b2e4323edbf05ebedaf4273 (patch) | |
| tree | 576e59050b2d1a31eeafdd4fded978199d8efac7 /tools/perf/scripts/python/bin | |
| parent | iommu/amd: Handle return of iommu_device_sysfs_add (diff) | |
| download | linux-d02674d71c5a625e5b2e4323edbf05ebedaf4273.tar.gz linux-d02674d71c5a625e5b2e4323edbf05ebedaf4273.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 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
