aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-04-29 22:12:44 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2009-06-16 00:44:50 -0400
commit045f123d9c83b9a18c9d43a9afbf52bf0799640d (patch)
treee912ac6548f39dd57b76bc7519d853c33e430ec2 /drivers/usb/host/xhci.h
parent700e2052c6814b1b1d2714225d568c5c64bc49ae (diff)
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>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r--drivers/usb/host/xhci.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index e57a609e381d..13c9166e758a 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1068,12 +1068,13 @@ static inline unsigned int xhci_readl(const struct xhci_hcd *xhci,
1068{ 1068{
1069 return readl(regs); 1069 return readl(regs);
1070} 1070}
1071static inline void xhci_writel(const struct xhci_hcd *xhci, 1071static inline void xhci_writel(struct xhci_hcd *xhci,
1072 const unsigned int val, __u32 __iomem *regs) 1072 const unsigned int val, __u32 __iomem *regs)
1073{ 1073{
1074 if (!in_interrupt()) 1074 if (!in_interrupt())
1075 xhci_dbg(xhci, "`MEM_WRITE_DWORD(3'b000, 32'h%0x, 32'h%0x, 4'hf);\n", 1075 xhci_dbg(xhci,
1076 (unsigned int) regs, val); 1076 "`MEM_WRITE_DWORD(3'b000, 32'h%p, 32'h%0x, 4'hf);\n",
1077 regs, val);
1077 writel(val, regs); 1078 writel(val, regs);
1078} 1079}
1079 1080