]> git.baikalelectronics.ru Git - kernel.git/commit
usb: phy: mv-usb: fix usb_phy build errors
authorArnd Bergmann <arnd@arndb.de>
Tue, 13 Jan 2015 14:25:11 +0000 (15:25 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 13 Jan 2015 15:32:22 +0000 (09:32 -0600)
commitf9200059a69e54999cf8c470aa1330226964c527
treebdac449ec94541aeb5dde2c5539b084307901b88
parent0b45561efcace2cb2c16c5c00bc9cae29654a25a
usb: phy: mv-usb: fix usb_phy build errors

The driver was recently adapted to a core API change, but the
change was incomplete, missing out the suspend helper and
leaving an extraneous local variable around:

usb/phy/phy-mv-usb.c: In function 'mv_otg_update_state':
usb/phy/phy-mv-usb.c:341:18: warning: unused variable 'phy' [-Wunused-variable]

usb/phy/phy-mv-usb.c: In function 'mv_otg_suspend':
usb/phy/phy-mv-usb.c:861:16: error: 'struct usb_phy' has no member named 'state'

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: c89b4f3e69064 ("usb: move the OTG state from the USB PHY to the OTG structure")
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-mv-usb.c