diff options
Diffstat (limited to 'drivers/ide/legacy/ide-cs.c')
-rw-r--r-- | drivers/ide/legacy/ide-cs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/legacy/ide-cs.c b/drivers/ide/legacy/ide-cs.c index de2e5944809e..2b0b4958881a 100644 --- a/drivers/ide/legacy/ide-cs.c +++ b/drivers/ide/legacy/ide-cs.c | |||
@@ -163,7 +163,7 @@ static int idecs_register(unsigned long io, unsigned long ctl, unsigned long irq | |||
163 | i = hwif->index; | 163 | i = hwif->index; |
164 | 164 | ||
165 | if (hwif->present) | 165 | if (hwif->present) |
166 | ide_unregister(i, 0, 0); | 166 | ide_unregister(i); |
167 | else if (!hwif->hold) | 167 | else if (!hwif->hold) |
168 | ide_init_port_data(hwif, i); | 168 | ide_init_port_data(hwif, i); |
169 | 169 | ||
@@ -360,7 +360,7 @@ void ide_release(struct pcmcia_device *link) | |||
360 | if (info->ndev) { | 360 | if (info->ndev) { |
361 | /* FIXME: if this fails we need to queue the cleanup somehow | 361 | /* FIXME: if this fails we need to queue the cleanup somehow |
362 | -- need to investigate the required PCMCIA magic */ | 362 | -- need to investigate the required PCMCIA magic */ |
363 | ide_unregister(info->hd, 0, 0); | 363 | ide_unregister(info->hd); |
364 | } | 364 | } |
365 | info->ndev = 0; | 365 | info->ndev = 0; |
366 | 366 | ||