ide: fix buggy code in ide_register_hw()
authorPeter Teoh <htmldeveloper@gmail.com>
Fri, 7 Mar 2008 20:53:49 +0000 (21:53 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 7 Mar 2008 20:53:49 +0000 (21:53 +0100)
commit0c6025d44448bd688dfd351a09bc620aafa4d1ff
treefb6336469c21789cba0a84c4ebfe5db69e8d25bf
parentef4298d0f06c788d204caa9e395de6e9e2fd9fc9
ide: fix buggy code in ide_register_hw()

Relocating the index to come after finding the hwif pointer.

Signed-off-by: Peter Teoh <htmldeveloper@gmail.com>
Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide.c