From: Tejun Heo Date: Tue, 14 Apr 2009 03:59:03 +0000 (+0900) Subject: pata_legacy: fix no device fail path X-Git-Tag: v2.6.30-rc3~73^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20cbf5f8c0fe3df2ddbde1f334993b4dda18a651;p=pandora-kernel.git pata_legacy: fix no device fail path When pata_legacy can't detect any device, it unregisters the platform_device and fails detection. However, it forgets to detach ata host triggering weird failures as the host later gets freed by devres while still attached. Fix it. Signed-off-by: Tejun Heo Reported-by: Peter Zijlstra Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed