diff options
Diffstat (limited to 'drivers/ide/pci/cs5520.c')
-rw-r--r-- | drivers/ide/pci/cs5520.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/ide/pci/cs5520.c b/drivers/ide/pci/cs5520.c index 992b1cf8db69..a13f2bc0665c 100644 --- a/drivers/ide/pci/cs5520.c +++ b/drivers/ide/pci/cs5520.c | |||
@@ -146,6 +146,7 @@ static const struct ide_port_info cyrix_chipsets[] __devinitdata = { | |||
146 | static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_device_id *id) | 146 | static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_device_id *id) |
147 | { | 147 | { |
148 | const struct ide_port_info *d = &cyrix_chipsets[id->driver_data]; | 148 | const struct ide_port_info *d = &cyrix_chipsets[id->driver_data]; |
149 | hw_regs_t hw[4], *hws[] = { NULL, NULL, NULL, NULL }; | ||
149 | u8 idx[4] = { 0xff, 0xff, 0xff, 0xff }; | 150 | u8 idx[4] = { 0xff, 0xff, 0xff, 0xff }; |
150 | 151 | ||
151 | ide_setup_pci_noise(dev, d); | 152 | ide_setup_pci_noise(dev, d); |
@@ -168,9 +169,9 @@ static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_devic | |||
168 | * do all the device setup for us | 169 | * do all the device setup for us |
169 | */ | 170 | */ |
170 | 171 | ||
171 | ide_pci_setup_ports(dev, d, 14, &idx[0]); | 172 | ide_pci_setup_ports(dev, d, 14, &idx[0], &hw[0], &hws[0]); |
172 | 173 | ||
173 | ide_device_add(idx, d); | 174 | ide_device_add(idx, d, hws); |
174 | 175 | ||
175 | return 0; | 176 | return 0; |
176 | } | 177 | } |