summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa_ioc.h
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2010-10-19 02:10:50 +0200
committerJames Bottomley <James.Bottomley@suse.de>2010-10-25 23:17:14 +0200
commitba816ea8e2eacbf3d198ad1859f413c2d6213434 (patch)
tree92399b02434b350fe4c767c0cb4f1790b7fee763 /drivers/scsi/bfa/bfa_ioc.h
parent[SCSI] bfa: remove os wrapper and unused functions (diff)
downloadlinux-ba816ea8e2eacbf3d198ad1859f413c2d6213434.tar.xz
linux-ba816ea8e2eacbf3d198ad1859f413c2d6213434.zip
[SCSI] bfa: replace endian swap macros with the ones provided by linux
Signed-off-by: Jing Huang <huangj@brocade.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_ioc.h')
-rw-r--r--drivers/scsi/bfa/bfa_ioc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfa_ioc.h b/drivers/scsi/bfa/bfa_ioc.h
index 97e1b16d2082..71c0b5ac4af5 100644
--- a/drivers/scsi/bfa/bfa_ioc.h
+++ b/drivers/scsi/bfa/bfa_ioc.h
@@ -125,8 +125,8 @@ __bfa_dma_addr_set(union bfi_addr_u *dma_addr, u64 pa)
static inline void
__bfa_dma_be_addr_set(union bfi_addr_u *dma_addr, u64 pa)
{
- dma_addr->a32.addr_lo = (u32) bfa_os_htonl(pa);
- dma_addr->a32.addr_hi = (u32) bfa_os_htonl(bfa_os_u32(pa));
+ dma_addr->a32.addr_lo = (u32) cpu_to_be32(pa);
+ dma_addr->a32.addr_hi = (u32) cpu_to_be32(bfa_os_u32(pa));
}
struct bfa_ioc_regs_s {