summaryrefslogtreecommitdiffstats
path: root/drivers/usb/phy/phy-fsl-usb.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2014-11-12 08:31:40 -0600
committerFelipe Balbi <balbi@ti.com>2014-11-12 08:37:37 -0600
commite5ba1c024aa0c21ef1755402fd94fabfd6e18c16 (patch)
treec8f9765784f09fa510805d5269a080b8e5bd6a3a /drivers/usb/phy/phy-fsl-usb.h
parent7e1bbeb4292783dcc079156b8fa08d66d17219e0 (diff)
downloadlinux-e5ba1c024aa0c21ef1755402fd94fabfd6e18c16.tar.gz
linux-e5ba1c024aa0c21ef1755402fd94fabfd6e18c16.tar.bz2
linux-e5ba1c024aa0c21ef1755402fd94fabfd6e18c16.zip
usb: phy: fsl: Fix build errors
commit e47d925 (usb: move the OTG state from the USB PHY to the OTG structure) moved the OTG state from struct usb_phy to struct usb_otg. Unfortunately, even though I fixed quite a few build regressions with that patch already, this one was still missing. Note that this driver still has other randconfig build problems which I'll leave for driver author to fix, as that's less trivial. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/phy/phy-fsl-usb.h')
-rw-r--r--drivers/usb/phy/phy-fsl-usb.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-fsl-usb.h b/drivers/usb/phy/phy-fsl-usb.h
index 5986c96354df..23149954a09c 100644
--- a/drivers/usb/phy/phy-fsl-usb.h
+++ b/drivers/usb/phy/phy-fsl-usb.h
@@ -298,7 +298,7 @@
/* SE0 Time Before SRP */
#define TB_SE0_SRP (2) /* b_idle,minimum 2 ms, section:5.3.2 */
-#define SET_OTG_STATE(otg_ptr, newstate) ((otg_ptr)->state = newstate)
+#define SET_OTG_STATE(phy, newstate) ((phy)->otg->state = newstate)
struct usb_dr_mmap {
/* Capability register */