libata: fix native mode disabled port handling
authorTejun Heo <htejun@gmail.com>
Fri, 9 Mar 2007 10:43:35 +0000 (19:43 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 28 Apr 2007 18:16:02 +0000 (14:16 -0400)
commit55a6adeea4077521b4bba1dfe674f5835157a00b
tree908e61d7a0a828bc9625b38bc1e22e0645230ade
parent17199b187b5d9a22f2ec835c9fdb38302501b918
libata: fix native mode disabled port handling

Disabled port handling in ata_pci_init_native_mode() is slightly
broken in that it may end up using the wrong port_info.  This patch
updates it such that disables ports are made dummy as done in the
legacy and other cases.

While at it, fix indentation in ata_resources_present().

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-sff.c