[PATCH] libata: make ata_set_mode() handle no-device case properly
authorTejun Heo <htejun@gmail.com>
Fri, 31 Mar 2006 16:38:18 +0000 (01:38 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 1 Apr 2006 17:33:46 +0000 (12:33 -0500)
commit4f65977df0b9a667fdcd85b95d457a220c94113f
treeb7cccdf707088b2f5c07c01c26b7761ef92ed175
parente1211e3fa7fd05ff0d4f597fd37e40de8acc6784
[PATCH] libata: make ata_set_mode() handle no-device case properly

Make ata_set_mode() return without doing anything if there is no
device on the port.  This is in preparation for ata_bus_probe()
changes.

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