summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pm8001/pm8001_hwi.h
diff options
context:
space:
mode:
authorSantosh Nayak <santoshprasadnayak@gmail.com>2012-03-19 21:26:27 +0530
committerJames Bottomley <JBottomley@Parallels.com>2012-04-23 19:25:50 +0100
commitfd00f7c1034391efa55bf87235a933fd76975af9 (patch)
tree4338a5c8d2c365f4b2b27499ee6cbabc27cb9da0 /drivers/scsi/pm8001/pm8001_hwi.h
parentc6f5c93098f5577210f8f3ea22209b3f266c66af (diff)
downloadblackbird-op-linux-fd00f7c1034391efa55bf87235a933fd76975af9.tar.gz
blackbird-op-linux-fd00f7c1034391efa55bf87235a933fd76975af9.zip
[SCSI] pm8001: fix endian issue with code optimization.
Data type of the 'tag' field of 'fw_flash_Update_resp' should be __le32. Data type of 'pHeader' should be __le32. Remove 2nd cast to 'piomb'. Signed-off-by: Santosh Nayak <santoshprasadnayak@gmail.com> Acked-by: Jack Wang <jack_wang@usish.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/pm8001/pm8001_hwi.h')
-rw-r--r--drivers/scsi/pm8001/pm8001_hwi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/pm8001/pm8001_hwi.h b/drivers/scsi/pm8001/pm8001_hwi.h
index 1a4611eb0321..d437309cb1e1 100644
--- a/drivers/scsi/pm8001/pm8001_hwi.h
+++ b/drivers/scsi/pm8001/pm8001_hwi.h
@@ -599,7 +599,7 @@ struct fw_flash_Update_req {
*
*/
struct fw_flash_Update_resp {
- dma_addr_t tag;
+ __le32 tag;
__le32 status;
u32 reserved[13];
} __attribute__((packed, aligned(4)));
OpenPOWER on IntegriCloud