]> git.baikalelectronics.ru Git - kernel.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 17:28:11 +0000 (09:28 -0800)
commit5c4707d45dabb763b52702c640aa8b4dde11b4c9
tree01f1ca3a15e427c7520e3e72b23b6b45dcd5ce51
parentce7613109891d2eade819aa410a7e73cd9d65ee5
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>
drivers/usb/chipidea/usbmisc_imx.c