diff options
Diffstat (limited to 'drivers/ide/mips/swarm.c')
-rw-r--r-- | drivers/ide/mips/swarm.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/ide/mips/swarm.c b/drivers/ide/mips/swarm.c index 712d17bdd470..52fee3d2771a 100644 --- a/drivers/ide/mips/swarm.c +++ b/drivers/ide/mips/swarm.c | |||
@@ -4,7 +4,7 @@ | |||
4 | * Author: Manish Lachwani, mlachwani@mvista.com | 4 | * Author: Manish Lachwani, mlachwani@mvista.com |
5 | * Copyright (C) 2004 MIPS Technologies, Inc. All rights reserved. | 5 | * Copyright (C) 2004 MIPS Technologies, Inc. All rights reserved. |
6 | * Author: Maciej W. Rozycki <macro@mips.com> | 6 | * Author: Maciej W. Rozycki <macro@mips.com> |
7 | * Copyright (c) 2006 Maciej W. Rozycki | 7 | * Copyright (c) 2006, 2008 Maciej W. Rozycki |
8 | * | 8 | * |
9 | * This program is free software; you can redistribute it and/or | 9 | * This program is free software; you can redistribute it and/or |
10 | * modify it under the terms of the GNU General Public License | 10 | * modify it under the terms of the GNU General Public License |
@@ -70,8 +70,9 @@ static int __devinit swarm_ide_probe(struct device *dev) | |||
70 | ide_hwif_t *hwif; | 70 | ide_hwif_t *hwif; |
71 | u8 __iomem *base; | 71 | u8 __iomem *base; |
72 | phys_t offset, size; | 72 | phys_t offset, size; |
73 | hw_regs_t hw; | ||
73 | int i; | 74 | int i; |
74 | u8 idx[4] = { 0xff, 0xff, 0xff, 0xff }; | 75 | u8 idx[] = { 0xff, 0xff, 0xff, 0xff }; |
75 | 76 | ||
76 | if (!SIBYTE_HAVE_IDE) | 77 | if (!SIBYTE_HAVE_IDE) |
77 | return -ENODEV; | 78 | return -ENODEV; |
@@ -112,14 +113,15 @@ static int __devinit swarm_ide_probe(struct device *dev) | |||
112 | hwif->host_flags = IDE_HFLAG_MMIO; | 113 | hwif->host_flags = IDE_HFLAG_MMIO; |
113 | default_hwif_mmiops(hwif); | 114 | default_hwif_mmiops(hwif); |
114 | 115 | ||
115 | hwif->chipset = ide_generic; | ||
116 | |||
117 | for (i = 0; i <= 7; i++) | 116 | for (i = 0; i <= 7; i++) |
118 | hwif->io_ports_array[i] = | 117 | hw.io_ports_array[i] = |
119 | (unsigned long)(base + ((0x1f0 + i) << 5)); | 118 | (unsigned long)(base + ((0x1f0 + i) << 5)); |
120 | hwif->io_ports.ctl_addr = | 119 | hw.io_ports.ctl_addr = |
121 | (unsigned long)(base + (0x3f6 << 5)); | 120 | (unsigned long)(base + (0x3f6 << 5)); |
122 | hwif->irq = K_INT_GB_IDE; | 121 | hw.irq = K_INT_GB_IDE; |
122 | hw.chipset = ide_generic; | ||
123 | |||
124 | ide_init_port_hw(hwif, &hw); | ||
123 | 125 | ||
124 | idx[0] = hwif->index; | 126 | idx[0] = hwif->index; |
125 | 127 | ||