diff options
author | Lijun Pan | 2014-06-20 12:18:39 -0500 |
---|---|---|
committer | Tom Rini | 2014-07-22 07:44:24 -0400 |
commit | 4a755f1da52f2baee68888e21599dc8b80c89033 (patch) | |
tree | cd2314d4e2dbbe3200b2c4000b092491774073c3 /drivers | |
parent | 8f2df5d369ea57a2c1e4697e508a86fc1346e76f (diff) |
driver/usb: include upper/lower_32_bits() from linux/compat.h
upper_32_bits() and lower_32_bits() have been ported into linux/compat.h.
Start use them now in drivers/usb/host/xhci.h.
Signed-off-by: Lijun Pan <Lijun.Pan@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/host/xhci.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index ceb1573d86b..6685ed23de6 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h @@ -20,9 +20,7 @@ #include <asm/cache.h> #include <asm/io.h> #include <linux/list.h> - -#define upper_32_bits(n) (u32)((n) >> 32) -#define lower_32_bits(n) (u32)(n) +#include <linux/compat.h> #define MAX_EP_CTX_NUM 31 #define XHCI_ALIGNMENT 64 @@ -1121,7 +1119,7 @@ static inline void xhci_writeq(__le64 volatile *regs, const u64 val) __u32 *ptr = (__u32 *)regs; u32 val_lo = lower_32_bits(val); /* FIXME */ - u32 val_hi = 0; + u32 val_hi = upper_32_bits(val); writel(val_lo, ptr); writel(val_hi, ptr + 1); } |