summaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/gadget.c
diff options
context:
space:
mode:
authorPawel Laszczak <pawell@cadence.com>2020-10-07 06:02:30 +0200
committerPeter Chen <peter.chen@nxp.com>2020-12-10 08:45:26 +0800
commitb3b4a9d70fec50c90c9ee1da408793b50f78a500 (patch)
treea79bb7260c2d197c2445e1cdb1b8bb2005265d70 /drivers/usb/cdns3/gadget.c
parentb65054597872ce3aefbc6a666385eabdf9e288da (diff)
downloadlinux-stable-b3b4a9d70fec50c90c9ee1da408793b50f78a500.tar.gz
linux-stable-b3b4a9d70fec50c90c9ee1da408793b50f78a500.tar.bz2
linux-stable-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.c')
-rw-r--r--drivers/usb/cdns3/gadget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c
index 365f30fb1159..c62e09ba9231 100644
--- a/drivers/usb/cdns3/gadget.c
+++ b/drivers/usb/cdns3/gadget.c
@@ -3083,7 +3083,7 @@ static void cdns3_gadget_release(struct device *dev)
kfree(priv_dev);
}
-void cdns3_gadget_exit(struct cdns3 *cdns)
+static void cdns3_gadget_exit(struct cdns3 *cdns)
{
struct cdns3_device *priv_dev;