[amazon] Add kernel 2.6.30 support
[openwrt/svn-archive/archive.git] / target / linux / amazon / patches-2.6.30 / 230-fix_pci.patch
1 --- a/arch/mips/amazon/pci.c
2 +++ b/arch/mips/amazon/pci.c
3 @@ -182,7 +182,7 @@ static struct pci_controller amazon_pci_
4 .io_resource = &pci_io_resource
5 };
6
7 -int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
8 +int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
9 {
10 switch (slot) {
11 case 13:
12 @@ -240,7 +240,7 @@ int pcibios_plat_dev_init(struct pci_dev
13 return 0;
14 }
15
16 -int amazon_pci_init(void)
17 +int __init amazon_pci_init(void)
18 {
19 u32 temp_buffer;
20