aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/mips-boards/generic/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/mips-boards/generic/pci.c')
-rw-r--r--arch/mips/mips-boards/generic/pci.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/mips/mips-boards/generic/pci.c b/arch/mips/mips-boards/generic/pci.c
index 92c34bda02ae..5dadedffba13 100644
--- a/arch/mips/mips-boards/generic/pci.c
+++ b/arch/mips/mips-boards/generic/pci.c
@@ -109,7 +109,7 @@ static struct pci_controller msc_controller = {
109 .io_offset = 0x00000000UL, 109 .io_offset = 0x00000000UL,
110}; 110};
111 111
112static int __init pcibios_init(void) 112void __init mips_pcibios_init(void)
113{ 113{
114 struct pci_controller *controller; 114 struct pci_controller *controller;
115 115
@@ -150,14 +150,10 @@ static int __init pcibios_init(void)
150 controller = &msc_controller; 150 controller = &msc_controller;
151 break; 151 break;
152 default: 152 default:
153 return 1; 153 return;
154 } 154 }
155 155
156 ioport_resource.end = controller->io_resource->end; 156 ioport_resource.end = controller->io_resource->end;
157 157
158 register_pci_controller (controller); 158 register_pci_controller (controller);
159
160 return 0;
161} 159}
162
163early_initcall(pcibios_init);