ide: fix ide_register_port() failure handling
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 2 Feb 2009 19:12:21 +0000 (20:12 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Mon, 2 Feb 2009 19:12:21 +0000 (20:12 +0100)
commit9a100f4b78c4c59fdd1cc38c5fa6a1ec66f23d9a
treec7444871700b74d3f26d3c15d7ee78b6a85eb201
parente5461f38b43d5658087a598c8deb2a9928d6b92b
ide: fix ide_register_port() failure handling

* Factor out port freeing from ide_host_free() to ide_free_port().

* Add ide_disable_port() and use it on ide_register_port() failure.

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