OSDN Git Service

USB: xhci: rework xhci_print_ir_set() to get ir set from xhci itself
authorDmitry Torokhov <dtor@vmware.com>
Wed, 9 Feb 2011 00:29:33 +0000 (16:29 -0800)
committerYoshinori Sato <ysato@users.sourceforge.jp>
Mon, 28 Feb 2011 08:16:51 +0000 (17:16 +0900)
commitd25c394c59a59ff5c468390bc1ef2a55fc932565
treee09961bcbc4e72bce70b166f21c844ae61c3a69b
parent01818592eaa93e574a8ee2e8cbc6c9449655d18a
USB: xhci: rework xhci_print_ir_set() to get ir set from xhci itself

xhci->ir_set points to __iomem region, but xhci_print_ir_set accepts
plain struct xhci_intr_reg * causing multiple sparse warning at call
sites and inside the fucntion when we try to read that memory.

Instead of adding __iomem qualifier to the argument let's rework the
function so it itself gets needed register set from xhci and prints
it.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/host/xhci-dbg.c
drivers/usb/host/xhci-mem.c
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h