diff options
author | Xenia Ragiadakou <burzalodowa@gmail.com> | 2013-11-14 22:34:07 -0500 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2013-12-02 15:59:49 -0500 |
commit | 204b7793f2a9935e9a08524d0b4bb51b990d518e (patch) | |
tree | 144bfdb254d93cb60beb49652bf9dc80343df3d9 /drivers/usb/host/xhci.h | |
parent | b0ba9720846c980d053b1ffcd766fddfbef95d4c (diff) |
xhci: replace xhci_writel() with writel()
Function xhci_writel() is used to write a 32bit value in 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_writel() internally simply calls writel().
This creates an illusion that xhci_writel() is an xhci specific function that
has to be called in a context where a pointer to xhci_hcd is available.
Remove xhci_writel() wrapper function and replace its calls with calls to
writel() to make the code more straight-forward.
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.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index c727f1edb37f..402d8743d245 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h | |||
@@ -1595,14 +1595,6 @@ static inline struct usb_hcd *xhci_to_hcd(struct xhci_hcd *xhci) | |||
1595 | #define xhci_warn_ratelimited(xhci, fmt, args...) \ | 1595 | #define xhci_warn_ratelimited(xhci, fmt, args...) \ |
1596 | dev_warn_ratelimited(xhci_to_hcd(xhci)->self.controller , fmt , ## args) | 1596 | dev_warn_ratelimited(xhci_to_hcd(xhci)->self.controller , fmt , ## args) |
1597 | 1597 | ||
1598 | /* TODO: copied from ehci.h - can be refactored? */ | ||
1599 | /* xHCI spec says all registers are little endian */ | ||
1600 | static inline void xhci_writel(struct xhci_hcd *xhci, | ||
1601 | const unsigned int val, __le32 __iomem *regs) | ||
1602 | { | ||
1603 | writel(val, regs); | ||
1604 | } | ||
1605 | |||
1606 | /* | 1598 | /* |
1607 | * Registers should always be accessed with double word or quad word accesses. | 1599 | * Registers should always be accessed with double word or quad word accesses. |
1608 | * | 1600 | * |