]> git.karo-electronics.de Git - linux-beck.git/commit
usb: chipidea: Reallocate regmap only if lpm is detected
authorChris Ruehl <chris.ruehl@gtsys.com.hk>
Fri, 6 Dec 2013 08:35:12 +0000 (16:35 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 02:02:54 +0000 (18:02 -0800)
commitaeb2c1210d71c00a4b59d343b0a7df6b1059eb89
tree785bd1dd7889fc3e0f28267614a497d5a3defc50
parent9058bdc3a8fbfe1a528019466df62635ef1f7a94
usb: chipidea: Reallocate regmap only if lpm is detected

The regmap only needs to reallocate if the hw_read on the CAP register shows
lpm is used. Therefore the if() statement check the change.

Signed-off-by: Chris Ruehl <chris.ruehl@gtsys.com.hk>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/core.c