diff options
author | Tejun Heo <htejun@gmail.com> | 2007-04-17 23:44:06 +0900 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-04-28 14:16:02 -0400 |
commit | 4911487a34baa89ec5b5f09a661761b73091fbec (patch) | |
tree | f79f6fa1a061cbbfcaac9a1581c7cf9600a82441 /include/linux/libata.h | |
parent | bf33554290bb6a6b2bd8827076f89fb17fb19e3d (diff) | |
download | kernel_samsung_smdk4412-4911487a34baa89ec5b5f09a661761b73091fbec.zip kernel_samsung_smdk4412-4911487a34baa89ec5b5f09a661761b73091fbec.tar.gz kernel_samsung_smdk4412-4911487a34baa89ec5b5f09a661761b73091fbec.tar.bz2 |
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>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 12237d4..ced9dd5 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -1231,7 +1231,7 @@ static inline void ata_pad_free(struct ata_port *ap, struct device *dev) static inline struct ata_port *ata_shost_to_port(struct Scsi_Host *host) { - return (struct ata_port *) &host->hostdata[0]; + return *(struct ata_port **)&host->hostdata[0]; } #endif /* __LINUX_LIBATA_H__ */ |