Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ACPI/IORT: Remove the unused __get_pci_rid()

Since commit bc8648d49a95 ("ACPI/IORT: Handle PCI aliases properly for
IOMMUs"), __get_pci_rid() has become actually unused and can be removed.

Signed-off-by: Zenghui Yu <yuzenghui@huawei.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Hanjun Guo <guohanjun@huawei.com>
Link: https://lore.kernel.org/r/20200509093430.1983-1-yuzenghui@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>

authored by

Zenghui Yu and committed by
Will Deacon
09cda9a7 50c8ab8d

-9
-9
drivers/acpi/arm64/iort.c
··· 772 772 dev_set_msi_domain(dev, msi_domain); 773 773 } 774 774 775 - static int __maybe_unused __get_pci_rid(struct pci_dev *pdev, u16 alias, 776 - void *data) 777 - { 778 - u32 *rid = data; 779 - 780 - *rid = alias; 781 - return 0; 782 - } 783 - 784 775 #ifdef CONFIG_IOMMU_API 785 776 static struct acpi_iort_node *iort_get_msi_resv_iommu(struct device *dev) 786 777 {