diff options
Diffstat (limited to 'drivers/ide/pci/cs5520.c')
-rw-r--r-- | drivers/ide/pci/cs5520.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ide/pci/cs5520.c b/drivers/ide/pci/cs5520.c index b8ec06d22c61..b03d8ae947e6 100644 --- a/drivers/ide/pci/cs5520.c +++ b/drivers/ide/pci/cs5520.c | |||
@@ -114,7 +114,6 @@ static const struct ide_port_info cyrix_chipsets[] __devinitdata = { | |||
114 | 114 | ||
115 | static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_device_id *id) | 115 | static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_device_id *id) |
116 | { | 116 | { |
117 | struct ide_host *host; | ||
118 | const struct ide_port_info *d = &cyrix_chipsets[id->driver_data]; | 117 | const struct ide_port_info *d = &cyrix_chipsets[id->driver_data]; |
119 | hw_regs_t hw[4], *hws[] = { NULL, NULL, NULL, NULL }; | 118 | hw_regs_t hw[4], *hws[] = { NULL, NULL, NULL, NULL }; |
120 | 119 | ||
@@ -140,11 +139,7 @@ static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_devic | |||
140 | 139 | ||
141 | ide_pci_setup_ports(dev, d, 14, &hw[0], &hws[0]); | 140 | ide_pci_setup_ports(dev, d, 14, &hw[0], &hws[0]); |
142 | 141 | ||
143 | host = ide_host_alloc(d, hws); | 142 | return ide_host_add(d, hws, NULL); |
144 | if (host) | ||
145 | ide_host_register(host, d, hws); | ||
146 | |||
147 | return 0; | ||
148 | } | 143 | } |
149 | 144 | ||
150 | static const struct pci_device_id cs5520_pci_tbl[] = { | 145 | static const struct pci_device_id cs5520_pci_tbl[] = { |