diff options
author | Pawel Laszczak <pawell@cadence.com> | 2020-10-07 06:02:30 +0200 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2020-12-10 08:45:26 +0800 |
commit | b3b4a9d70fec50c90c9ee1da408793b50f78a500 (patch) | |
tree | a79bb7260c2d197c2445e1cdb1b8bb2005265d70 /drivers/usb/cdns3/gadget-export.h | |
parent | b65054597872ce3aefbc6a666385eabdf9e288da (diff) | |
download | linux-b3b4a9d70fec50c90c9ee1da408793b50f78a500.tar.gz linux-b3b4a9d70fec50c90c9ee1da408793b50f78a500.tar.bz2 linux-b3b4a9d70fec50c90c9ee1da408793b50f78a500.zip |
usb: cdns3: Add static to cdns3_gadget_exit function
Function cdns3_gadget_exit is used only in gadget.c file.
This patch removes declaration and definition of this
function from gadget-export.h file and makes it static.
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/cdns3/gadget-export.h')
-rw-r--r-- | drivers/usb/cdns3/gadget-export.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/cdns3/gadget-export.h b/drivers/usb/cdns3/gadget-export.h index 577469eee961..702c5a267a92 100644 --- a/drivers/usb/cdns3/gadget-export.h +++ b/drivers/usb/cdns3/gadget-export.h @@ -13,7 +13,6 @@ #ifdef CONFIG_USB_CDNS3_GADGET int cdns3_gadget_init(struct cdns3 *cdns); -void cdns3_gadget_exit(struct cdns3 *cdns); #else static inline int cdns3_gadget_init(struct cdns3 *cdns) @@ -21,8 +20,6 @@ static inline int cdns3_gadget_init(struct cdns3 *cdns) return -ENXIO; } -static inline void cdns3_gadget_exit(struct cdns3 *cdns) { } - #endif #endif /* __LINUX_CDNS3_GADGET_EXPORT */ |