aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/libata.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r--include/linux/libata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 12237d4b9f9b..ced9dd54035e 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)
1231 1231
1232static inline struct ata_port *ata_shost_to_port(struct Scsi_Host *host) 1232static inline struct ata_port *ata_shost_to_port(struct Scsi_Host *host)
1233{ 1233{
1234 return (struct ata_port *) &host->hostdata[0]; 1234 return *(struct ata_port **)&host->hostdata[0];
1235} 1235}
1236 1236
1237#endif /* __LINUX_LIBATA_H__ */ 1237#endif /* __LINUX_LIBATA_H__ */