diff options
Diffstat (limited to 'arch/mips/pci')
-rw-r--r-- | arch/mips/pci/pci-lasat.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/arch/mips/pci/pci-lasat.c b/arch/mips/pci/pci-lasat.c index e70ae3236e0b..a98e543a514a 100644 --- a/arch/mips/pci/pci-lasat.c +++ b/arch/mips/pci/pci-lasat.c | |||
@@ -10,7 +10,7 @@ | |||
10 | #include <linux/pci.h> | 10 | #include <linux/pci.h> |
11 | #include <linux/types.h> | 11 | #include <linux/types.h> |
12 | 12 | ||
13 | #include <asm/bootinfo.h> | 13 | #include <asm/lasat/lasat.h> |
14 | 14 | ||
15 | #include <irq.h> | 15 | #include <irq.h> |
16 | 16 | ||
@@ -39,16 +39,10 @@ static int __init lasat_pci_setup(void) | |||
39 | { | 39 | { |
40 | printk(KERN_DEBUG "PCI: starting\n"); | 40 | printk(KERN_DEBUG "PCI: starting\n"); |
41 | 41 | ||
42 | switch (mips_machtype) { | 42 | if (IS_LASAT_200()) |
43 | case MACH_LASAT_100: | ||
44 | lasat_pci_controller.pci_ops = >64xxx_pci0_ops; | ||
45 | break; | ||
46 | case MACH_LASAT_200: | ||
47 | lasat_pci_controller.pci_ops = &nile4_pci_ops; | 43 | lasat_pci_controller.pci_ops = &nile4_pci_ops; |
48 | break; | 44 | else |
49 | default: | 45 | lasat_pci_controller.pci_ops = >64xxx_pci0_ops; |
50 | panic("pcibios_init: mips_machtype incorrect"); | ||
51 | } | ||
52 | 46 | ||
53 | register_pci_controller(&lasat_pci_controller); | 47 | register_pci_controller(&lasat_pci_controller); |
54 | 48 | ||