libata: initialize port_task when !CONFIG_ATA_SFF
authorTejun Heo <tj@kernel.org>
Mon, 20 Oct 2008 04:11:56 +0000 (13:11 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 23 Oct 2008 00:40:01 +0000 (20:40 -0400)
commitf667fdbbbea8bcce6cf9f7acb51b7cb4c264cc61
treeb8fe758137a54faf31dcdd97be0701dfbaf930fd
parent2515ddc6db8eb49a79f0fe5e67ff09ac7c81eab4
libata: initialize port_task when !CONFIG_ATA_SFF

ap->port_task was not initialized if !CONFIG_ATA_SFF later triggering
lockdep warning.  Make sure it's initialized.

Reported by Larry Finger.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-core.c