diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-02-19 23:29:08 -0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-02-22 08:11:18 +0100 |
commit | 1b94263898b895760dfcde86abc586a2b2075224 (patch) | |
tree | 868cfa05249a796b770a77031a52a32eb95dd76e | |
parent | fa42474239d7bf5370aac3672cfb6b6b37d7f2dc (diff) | |
download | barebox-1b94263898b895760dfcde86abc586a2b2075224.tar.gz barebox-1b94263898b895760dfcde86abc586a2b2075224.tar.xz |
usb: xhci-hcd: Cast ~XHCI_IRQS to u32
Cast ~XHCI_IRQS to u32 to avoid getting a warning on 64-bit builds.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/usb/host/xhci-hcd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-hcd.c b/drivers/usb/host/xhci-hcd.c index 7106a56371..a01f9fe38a 100644 --- a/drivers/usb/host/xhci-hcd.c +++ b/drivers/usb/host/xhci-hcd.c @@ -1259,7 +1259,7 @@ static void xhci_dma_alloc(struct xhci_hcd *xhci) static int xhci_halt(struct xhci_hcd *xhci) { u32 reg = readl(&xhci->op_regs->status); - u32 mask = ~XHCI_IRQS; + u32 mask = (u32)~XHCI_IRQS; if (!(reg & STS_HALT)) mask &= ~CMD_RUN; |