mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
The only functions needed from the private pci.h header are pci_dev_is_disconnected() and of_get_pci_domain_nr(). Starting with Linux v6.9, pci_dev_is_disconnected() has been moved to the public header and now the private header conflicts with the public due to multiple definitions. It is better to remove the private pci.h header file and backport the upstream change that moves the definition of pci_dev_is_disconnected() to the public header. With regard to the function of_get_pci_domain_nr(), just declare an extern for the function prototype in the driver file rather than copying the entire kernel header. Bug 4471899 Change-Id: I10e7c3c6a92e9ba87153b2682cc3e69ced8c1a31 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-t264/+/3117272 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>