ahci: move port_map handling to ahci_save_initial_config()
authorTejun Heo <htejun@gmail.com>
Sun, 18 Mar 2007 13:26:53 +0000 (22:26 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 28 Apr 2007 18:16:01 +0000 (14:16 -0400)
commit17199b187b5d9a22f2ec835c9fdb38302501b918
treeae381abed721e382c2bb031a89acd8098e4aeb15
parentd447df140d0f07a02bd221cb42eb0b61bce16042
ahci: move port_map handling to ahci_save_initial_config()

Move cross checking between port_map and cap.n_ports into
ahci_save_initial_config().  After save_initial_config is done,
hpriv->port_map is always setup properly.

Tested on JMB363, ICH7 and ICH8 (with dummy ports).

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