diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 17:09:33 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-01 17:09:33 -0500 |
commit | fadd11c71b5a100fb7560b84a6272b8883082726 (patch) | |
tree | b6fb0fe9df2c7f23481f3b34497d7101a2ef31fe /drivers/ide/mips | |
parent | ed908fa1d037d780ebd04a412693bf3fc9c3a8fe (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/mips')
-rw-r--r-- | drivers/ide/mips/au1xxx-ide.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | ||