[U-Boot] [PATCH 09/24] usb: s3c-otg: Staticize s3c_udc_ep_set_stall
Marek Vasut
marex at denx.de
Fri Dec 4 03:38:07 CET 2015
This function is local to s3c_udc_otg_xfer_dma.c , staticize it.
Signed-off-by: Marek Vasut <marex at denx.de>
---
drivers/usb/gadget/s3c_udc_otg_priv.h | 2 --
drivers/usb/gadget/s3c_udc_otg_xfer_dma.c | 2 +-
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/usb/gadget/s3c_udc_otg_priv.h b/drivers/usb/gadget/s3c_udc_otg_priv.h
index 953cded..881b825 100644
--- a/drivers/usb/gadget/s3c_udc_otg_priv.h
+++ b/drivers/usb/gadget/s3c_udc_otg_priv.h
@@ -99,6 +99,4 @@ extern struct dwc2_udc *the_controller;
extern void otg_phy_init(struct dwc2_udc *dev);
extern void otg_phy_off(struct dwc2_udc *dev);
-extern void s3c_udc_ep_set_stall(struct dwc2_ep *ep);
-
#endif /* __S3C_UDC_OTG_PRIV__ */
diff --git a/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c b/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
index 0288d44..1390239 100644
--- a/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
+++ b/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
@@ -946,7 +946,7 @@ static void s3c_udc_set_nak(struct dwc2_ep *ep)
}
-void s3c_udc_ep_set_stall(struct dwc2_ep *ep)
+static void s3c_udc_ep_set_stall(struct dwc2_ep *ep)
{
u8 ep_num;
u32 ep_ctrl = 0;
--
2.1.4
More information about the U-Boot
mailing list