[PATCH] libata: fix class handling in ata_bus_probe()
authorTejun Heo <htejun@gmail.com>
Sun, 12 Mar 2006 16:57:01 +0000 (01:57 +0900)
committerJeff Garzik <jeff@garzik.org>
Sun, 12 Mar 2006 17:49:45 +0000 (12:49 -0500)
commit2044470cccec1bfe6bb819027975df302ff43bf8
tree64254b2ca55f8727f08e46361532361027cf4faf
parent4b10e559277de490bf5c257a1e3264a2bf51404b
[PATCH] libata: fix class handling in ata_bus_probe()

ata_bus_probe() didn't set classes[] properly for port disabled case
of ->phy_reset() compatibility path.  This patch moves classes[]
initialization and normalization out of ->probe_reset block such that
it applies to both ->probe_reset and ->phy_reset paths.

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