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>
Showing
- drivers/usb/host/xhci-dbg.c 18 additions, 18 deletionsdrivers/usb/host/xhci-dbg.c
- drivers/usb/host/xhci-hub.c 35 additions, 36 deletionsdrivers/usb/host/xhci-hub.c
- drivers/usb/host/xhci-mem.c 10 additions, 10 deletionsdrivers/usb/host/xhci-mem.c
- drivers/usb/host/xhci-ring.c 6 additions, 6 deletionsdrivers/usb/host/xhci-ring.c
- drivers/usb/host/xhci.c 43 additions, 43 deletionsdrivers/usb/host/xhci.c
- drivers/usb/host/xhci.h 0 additions, 5 deletionsdrivers/usb/host/xhci.h
Loading
Please register or sign in to comment