aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/arm/rapide.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 17:09:33 -0500
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-02-01 17:09:33 -0500
commitfadd11c71b5a100fb7560b84a6272b8883082726 (patch)
treeb6fb0fe9df2c7f23481f3b34497d7101a2ef31fe /drivers/ide/arm/rapide.c
parented908fa1d037d780ebd04a412693bf3fc9c3a8fe (diff)
au1xxx-ide/rapide: use hwif->index for ide_unregister()
Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/arm/rapide.c')
-rw-r--r--drivers/ide/arm/rapide.c4
1 files changed, 2 insertions, 2 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