]> git.baikalelectronics.ru Git - kernel.git/commit
staging: dwc2: only read the snpsid register once
authorMatthijs Kooijman <matthijs@stdin.nl>
Fri, 30 Aug 2013 16:45:14 +0000 (18:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Aug 2013 21:14:52 +0000 (14:14 -0700)
commit1110b9103c3c1466f0ec3868fa32117f7e5d8e95
tree3dd27f26737b741de11b9c35824e6725fcf05c53
parent0a57a06722c254d9c375f3db15b946ca07bbe28f
staging: dwc2: only read the snpsid register once

This (read-only) register was read twice, storing it for later use the
second time. Now it is only read once, storing it right away.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Acked-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dwc2/hcd.c