Skip to content
Commit 20cbf5f8 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

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: default avatarTejun Heo <tj@kernel.org>
Reported-by: default avatarPeter Zijlstra <peterz@infradead.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 265b7215
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment