diff options
| author | Pawel Laszczak <[email protected]> | 2020-07-13 10:05:46 +0000 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2020-07-24 13:45:12 +0000 |
| commit | b20aecff99a2335731bb2ae69c8368dfc356aef7 (patch) | |
| tree | aa6b9d9caf6a407587ae8a4841262f45985d1f92 /drivers/usb/cdns3/core.c | |
| parent | usb: cdns3: gadget: always zeroed TRB buffer when enable endpoint (diff) | |
| download | kernel-b20aecff99a2335731bb2ae69c8368dfc356aef7.tar.gz kernel-b20aecff99a2335731bb2ae69c8368dfc356aef7.zip | |
usb: cdns3: core: removed cdns3_get_current_role_driver function
Function is not used in driver so it can be removed.
Signed-off-by: Pawel Laszczak <[email protected]>
Reviewed-by: Peter Chen <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.c')
| -rw-r--r-- | drivers/usb/cdns3/core.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index 59e5e213a99b..1f77fb5aefbf 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers/usb/cdns3/core.c @@ -27,13 +27,6 @@ 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) { int ret; |
