]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
driver/usb: include upper/lower_32_bits() from linux/compat.h
authorLijun Pan <LIJUN.PAN@FREESCALE.COM>
Fri, 20 Jun 2014 17:18:39 +0000 (12:18 -0500)
committerTom Rini <trini@ti.com>
Tue, 22 Jul 2014 11:44:24 +0000 (07:44 -0400)
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>
drivers/usb/host/xhci.h

index ceb1573d86b043c8d3c507a8eed55ca484bb14de..6685ed23de65332c3db321eee616750e1151b028 100644 (file)
@@ -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);
 }