mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 09:56:00 +00:00
USB: xhci: fix some compiler warnings in xhci.h
This fixes the warning: drivers/usb/host/xhci.h:1083: warning: passing argument 1 of ‘xhci_to_hcd’ discards qualifiers from pointer target type drivers/usb/host/xhci.h:1083: warning: passing argument 1 of ‘xhci_to_hcd’ discards qualifiers from pointer target type Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
700e2052c6
commit
045f123d9c
@ -1068,12 +1068,13 @@ static inline unsigned int xhci_readl(const struct xhci_hcd *xhci,
|
|||||||
{
|
{
|
||||||
return readl(regs);
|
return readl(regs);
|
||||||
}
|
}
|
||||||
static inline void xhci_writel(const struct xhci_hcd *xhci,
|
static inline void xhci_writel(struct xhci_hcd *xhci,
|
||||||
const unsigned int val, __u32 __iomem *regs)
|
const unsigned int val, __u32 __iomem *regs)
|
||||||
{
|
{
|
||||||
if (!in_interrupt())
|
if (!in_interrupt())
|
||||||
xhci_dbg(xhci, "`MEM_WRITE_DWORD(3'b000, 32'h%0x, 32'h%0x, 4'hf);\n",
|
xhci_dbg(xhci,
|
||||||
(unsigned int) regs, val);
|
"`MEM_WRITE_DWORD(3'b000, 32'h%p, 32'h%0x, 4'hf);\n",
|
||||||
|
regs, val);
|
||||||
writel(val, regs);
|
writel(val, regs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user