]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
ide: remove redundant hwif->present check from ide_register_hw()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 2 Feb 2008 18:56:38 +0000 (19:56 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sat, 2 Feb 2008 18:56:38 +0000 (19:56 +0100)
commit2244e850632f82466d7c041546326c7055fc7159
tree79edb64767f83b1de01296180efaa91d231c1047
parent1bee4d1dce2d76bcf0bf9565298c62666de0fa1d
ide: remove redundant hwif->present check from ide_register_hw()

We check earlier for hwif->present and call ide_unregister() if necessary
(after ide_unregister() hwif->present will be always cleared).

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide.c