usb: chipidea: add role init and destroy APIs
authorPeter Chen <peter.chen@freescale.com>
Wed, 14 Aug 2013 09:44:07 +0000 (12:44 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2013 19:37:19 +0000 (12:37 -0700)
commit3f124d233e97db96d9471d1fb346335d43d8650d
treeb2953e4a35c6b6574641c9b5ab1a3d9c07d9a651
parentc10b4f033e7c0ddba2b7b699d01109e4de46e831
usb: chipidea: add role init and destroy APIs

- The role's init will be called at probe procedure.
- The role's destroy will be called at fail patch
at probe and driver's removal.
- The role's start/stop will be called when specific
role has started.

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/core.c
drivers/usb/chipidea/host.c
drivers/usb/chipidea/host.h
drivers/usb/chipidea/udc.c
drivers/usb/chipidea/udc.h