Unverified Commit b3b4a9d7 authored by Pawel Laszczak's avatar Pawel Laszczak Committed by Peter Chen
Browse files

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: default avatarPawel Laszczak <pawell@cadence.com>
Acked-by: default avatarRoger Quadros <rogerq@ti.com>
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
parent b6505459
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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 */
+1 −1
Original line number Diff line number Diff line
@@ -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;