diff options
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/arm/rapide.c | 4 | ||||
-rw-r--r-- | drivers/ide/mips/au1xxx-ide.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/arm/rapide.c b/drivers/ide/arm/rapide.c index e6b56d1d48f4..b5b6ed8b82b2 100644 --- a/drivers/ide/arm/rapide.c +++ b/drivers/ide/arm/rapide.c | |||
@@ -78,8 +78,8 @@ static void __devexit rapide_remove(struct expansion_card *ec) | |||
78 | 78 | ||
79 | ecard_set_drvdata(ec, NULL); | 79 | ecard_set_drvdata(ec, NULL); |
80 | 80 | ||
81 | /* there must be a better way */ | 81 | ide_unregister(hwif->index); |
82 | ide_unregister(hwif - ide_hwifs); | 82 | |
83 | ecard_release_resources(ec); | 83 | ecard_release_resources(ec); |
84 | } | 84 | } |
85 | 85 | ||
diff --git a/drivers/ide/mips/au1xxx-ide.c b/drivers/ide/mips/au1xxx-ide.c index b00c71f2aee3..71782b38280b 100644 --- a/drivers/ide/mips/au1xxx-ide.c +++ b/drivers/ide/mips/au1xxx-ide.c | |||
@@ -691,7 +691,7 @@ static int au_ide_remove(struct device *dev) | |||
691 | ide_hwif_t *hwif = dev_get_drvdata(dev); | 691 | ide_hwif_t *hwif = dev_get_drvdata(dev); |
692 | _auide_hwif *ahwif = &auide_hwif; | 692 | _auide_hwif *ahwif = &auide_hwif; |
693 | 693 | ||
694 | ide_unregister(hwif - ide_hwifs); | 694 | ide_unregister(hwif->index); |
695 | 695 | ||
696 | iounmap((void *)ahwif->regbase); | 696 | iounmap((void *)ahwif->regbase); |
697 | 697 | ||