Commit b20aecff authored by Pawel Laszczak's avatar Pawel Laszczak Committed by Felipe Balbi

usb: cdns3: core: removed cdns3_get_current_role_driver function

Function is not used in driver so it can be removed.
Signed-off-by: default avatarPawel Laszczak <pawell@cadence.com>
Reviewed-by: default avatarPeter Chen <peter.chen@nxp.com>
Signed-off-by: default avatarFelipe Balbi <balbi@kernel.org>
parent 95f5acfc
...@@ -27,13 +27,6 @@ ...@@ -27,13 +27,6 @@
static int cdns3_idle_init(struct cdns3 *cdns); static int cdns3_idle_init(struct cdns3 *cdns);
static inline
struct cdns3_role_driver *cdns3_get_current_role_driver(struct cdns3 *cdns)
{
WARN_ON(!cdns->roles[cdns->role]);
return cdns->roles[cdns->role];
}
static int cdns3_role_start(struct cdns3 *cdns, enum usb_role role) static int cdns3_role_start(struct cdns3 *cdns, enum usb_role role)
{ {
int ret; int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment