usb: chipidea: udc: otg_set_peripheral is useless for some chipidea users
authorPeter Chen <peter.chen@freescale.com>
Wed, 14 Aug 2013 09:44:05 +0000 (12:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 19:37:19 +0000 (12:37 -0700)
commitd66895f9df6b880fa3a280f5bdfe919169ca37dd
tree5ac0d7006b43cfa36f569cfaa59033fb8a0ebbcd
parent40ed51a4b8588055ccd8e5420c76290659c4c974
usb: chipidea: udc: otg_set_peripheral is useless for some chipidea users

It is useless at below cases:
- If we implement both usb host and device at chipidea driver.
- If we don't need phy->otg.

Tested-by: Marek Vasut <marex@denx.de>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/udc.c