cns3xxx: reorganize patches, fix pcie io space init order
[openwrt/svn-archive/archive.git] / target / linux / cns3xxx / patches-3.3 / 107-cns3xxx_pcie-section-mismatch-fixes.patch
1 --- a/arch/arm/mach-cns3xxx/pcie.c
2 +++ b/arch/arm/mach-cns3xxx/pcie.c
3 @@ -161,12 +161,12 @@ static int cns3xxx_pci_setup(int nr, str
4 return 1;
5 }
6
7 -static struct pci_ops cns3xxx_pcie_ops = {
8 +struct pci_ops cns3xxx_pcie_ops = {
9 .read = cns3xxx_pci_read_config,
10 .write = cns3xxx_pci_write_config,
11 };
12
13 -static struct pci_bus *cns3xxx_pci_scan_bus(int nr, struct pci_sys_data *sys)
14 +struct pci_bus * __devinit cns3xxx_pci_scan_bus(int nr, struct pci_sys_data *sys)
15 {
16 return pci_scan_root_bus(NULL, sys->busnr, &cns3xxx_pcie_ops, sys,
17 &sys->resources);