Re: [PATCH 27/28] PCI: Remove platform specific pci_domain_nr()

2015-01-18 Thread Yijing Wang
On 2015/1/16 17:44, Arnd Bergmann wrote: > On Friday 16 January 2015 09:44:25 Yijing Wang wrote: >> >> +int pci_domain_nr(struct pci_bus *bus) >> +{ >> + struct pci_host_bridge *host = find_pci_host_bridge(bus); >> + >> + return host->domain; >> +} >> +EXPORT_SYMBOL_GPL(pci_domain_nr);

Re: [PATCH 27/28] PCI: Remove platform specific pci_domain_nr()

2015-01-16 Thread Arnd Bergmann
On Friday 16 January 2015 09:44:25 Yijing Wang wrote: > > +int pci_domain_nr(struct pci_bus *bus) > +{ > + struct pci_host_bridge *host = find_pci_host_bridge(bus); > + > + return host->domain; > +} > +EXPORT_SYMBOL_GPL(pci_domain_nr); > + Since most of the existing functions are expo

[PATCH 27/28] PCI: Remove platform specific pci_domain_nr()

2015-01-15 Thread Yijing Wang
Now pci_host_bridge holds the domain number, so we could eliminate all platform specific pci_domain_nr(). Signed-off-by: Yijing Wang --- arch/alpha/include/asm/pci.h |2 -- arch/ia64/include/asm/pci.h |1 - arch/microblaze/pci/pci-common.c | 11 --- arch/mips/include/a