libata: allocate ap separately from shost
authorTejun Heo <htejun@gmail.com>
Tue, 17 Apr 2007 14:44:06 +0000 (23:44 +0900)
committerJeff Garzik <jeff@garzik.org>
Sat, 28 Apr 2007 18:16:02 +0000 (14:16 -0400)
commit4911487a34baa89ec5b5f09a661761b73091fbec
treef79f6fa1a061cbbfcaac9a1581c7cf9600a82441
parentbf33554290bb6a6b2bd8827076f89fb17fb19e3d
libata: allocate ap separately from shost

Don't embed ap inside shost.  Allocate it separately and point it back
from shosts's hostdata.  This makes port allocation more flexible and
allows regular ATA and SAS share host alloc/init paths.

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