]> err.no Git - linux-2.6/commit
ide: fix ide_host_register() return value
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 23 Jul 2008 17:55:57 +0000 (19:55 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 23 Jul 2008 17:55:57 +0000 (19:55 +0200)
commite0d0020788543febd10ab933bde0fa181b627f4f
tree939f6d15075cda41d0efdc4c4e3b569e480ceedf
parent6f904d015262dfa43eb1cecc00b0998b4c3543f2
ide: fix ide_host_register() return value

Fix ide_host_register() to fail only if all ports cannot be registered.

While at it:

* Use host->ports[] instead of ide_hwifs[] and remove idx[].

There should be no functional changes caused by this patch.

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