usb/xhci: ignore xhci version while checking for the link quirk
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 13 Sep 2011 23:41:10 +0000 (16:41 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 20 Sep 2011 19:33:49 +0000 (12:33 -0700)
commitd78265992425ccb5753db9c56d9703c91b963e4b
tree15123f4bc7c2dfd56559cbd4bba6165ebec70e94
parent45e1892e70b85d251b2e69f4122a04e509ebdf00
usb/xhci: ignore xhci version while checking for the link quirk

instead of reading the xhci interface version each time _even_ if the
quirk is not required, simply check if the quirk flag is set. This flag
is only set of the module parameter is set and here is where I moved the
version check to.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci.c
drivers/usb/host/xhci.h