patch-2.1.73 linux/arch/mips/sni/pci.c

Next file: linux/arch/mips/sni/setup.c
Previous file: linux/arch/mips/sni/int-handler.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.72/linux/arch/mips/sni/pci.c linux/arch/mips/sni/pci.c
@@ -119,17 +119,14 @@
 	return PCIBIOS_SUCCESSFUL;
 }
 
-__initfunc(unsigned long sni_rm200_pcibios_init(unsigned long memory_start, unsigned long memory_end))
-{
-	_pcibios_fixup = sni_rm200_pcibios_fixup;
-	_pcibios_read_config_byte = sni_rm200_pcibios_read_config_byte;
-	_pcibios_read_config_word = sni_rm200_pcibios_read_config_word;
-	_pcibios_read_config_dword = sni_rm200_pcibios_read_config_dword;
-	_pcibios_write_config_byte = sni_rm200_pcibios_write_config_byte;
-	_pcibios_write_config_word = sni_rm200_pcibios_write_config_word;
-	_pcibios_write_config_dword = sni_rm200_pcibios_write_config_dword;
-
-	return memory_start;
-}
+struct pci_ops sni_pci_ops = {
+	sni_rm200_pcibios_fixup,
+	sni_rm200_pcibios_read_config_byte,
+	sni_rm200_pcibios_read_config_word,
+	sni_rm200_pcibios_read_config_dword,
+	sni_rm200_pcibios_write_config_byte,
+	sni_rm200_pcibios_write_config_word,
+	sni_rm200_pcibios_write_config_dword
+};
 
 #endif /* CONFIG_PCI */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov