]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: chipidea: usbmisc_imx: Move the reading of USB_PHY_CTRL
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 26 Nov 2014 05:44:25 +0000 (13:44 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:19:06 +0000 (21:19 -0600)
commita4ca64001b546dd5c82d79bc21fcb7e7d6a5d362
tree85decf5087b129c27ffb3cec3930434256ff45d2
parentf793d712e5ebb446452e2320a60433f5716301fd
usb: chipidea: usbmisc_imx: Move the reading of USB_PHY_CTRL

If 'evdo' property is not defined, then reading the MX25_USB_PHY_CTRL_OFFSET
register is an unneeded operation.

Move the reading of MX25_USB_PHY_CTRL_OFFSET inside the 'evdo' if block code,
where it is actually used.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 8d1dc4d055faafafca3edd8499aeeef3f77803e4)
drivers/usb/chipidea/usbmisc_imx.c