summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/xhci.h
diff options
context:
space:
mode:
authorXenia Ragiadakou2013-11-15 04:34:06 +0100
committerSarah Sharp2013-12-02 21:59:48 +0100
commitb0ba9720846c980d053b1ffcd766fddfbef95d4c (patch)
tree03c170ac268064f2aeb07d37e13c37deee938c8d /drivers/usb/host/xhci.h
parentxhci: remove conversion from generic to pci device in xhci_mem.c (diff)
downloadkernel-qcow2-linux-b0ba9720846c980d053b1ffcd766fddfbef95d4c.tar.gz
kernel-qcow2-linux-b0ba9720846c980d053b1ffcd766fddfbef95d4c.tar.xz
kernel-qcow2-linux-b0ba9720846c980d053b1ffcd766fddfbef95d4c.zip
xhci: replace xhci_readl() with readl()
Function xhci_readl() is used to read 32bit xHC registers residing in MMIO address space. It takes as first argument a pointer to the xhci_hcd although it does not use it. xhci_readl() internally simply calls readl(). This creates an illusion that xhci_readl() is an xhci specific function that has to be called in a context where a pointer to xhci_hcd is available. Remove the unnecessary xhci_readl() wrapper function and replace its calls to with calls to readl() to make the code more straightforward. Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host/xhci.h')
-rw-r--r--drivers/usb/host/xhci.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h
index a33e8b5bf7a2..c727f1edb37f 100644
--- a/drivers/usb/host/xhci.h
+++ b/drivers/usb/host/xhci.h
@@ -1597,11 +1597,6 @@ static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci)
/* TODO: copied from ehci.h - can be refactored? */
/* xHCI spec says all registers are little endian */
-static inline unsigned int xhci_readl(const struct xhci_hcd *xhci,
- __le32 __iomem *regs)
-{
- return readl(regs);
-}
static inline void xhci_writel(struct xhci_hcd *xhci,
const unsigned int val, __le32 __iomem *regs)
{