|
@@ -691,7 +691,7 @@ static int au_ide_remove(struct device *dev)
|
|
ide_hwif_t *hwif = dev_get_drvdata(dev);
|
|
ide_hwif_t *hwif = dev_get_drvdata(dev);
|
|
_auide_hwif *ahwif = &auide_hwif;
|
|
_auide_hwif *ahwif = &auide_hwif;
|
|
|
|
|
|
- ide_unregister(hwif - ide_hwifs);
|
|
|
|
|
|
+ ide_unregister(hwif->index);
|
|
|
|
|
|
iounmap((void *)ahwif->regbase);
|
|
iounmap((void *)ahwif->regbase);
|
|
|
|
|