Skip to content

Commit

Permalink
au1xxx-ide/rapide: use hwif->index for ide_unregister()
Browse files Browse the repository at this point in the history
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 1, 2008
1 parent ed908fa commit fadd11c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/ide/arm/rapide.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ static void __devexit rapide_remove(struct expansion_card *ec)

ecard_set_drvdata(ec, NULL);

/* there must be a better way */
ide_unregister(hwif - ide_hwifs);
ide_unregister(hwif->index);

ecard_release_resources(ec);
}

Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/mips/au1xxx-ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ static int au_ide_remove(struct device *dev)
ide_hwif_t *hwif = dev_get_drvdata(dev);
_auide_hwif *ahwif = &auide_hwif;

ide_unregister(hwif - ide_hwifs);
ide_unregister(hwif->index);

iounmap((void *)ahwif->regbase);

Expand Down

0 comments on commit fadd11c

Please sign in to comment.