提交 ab1d53d5 编写于 作者: K kbuild test robot 提交者: Felipe Balbi

usb: gadget: udc: start_udc() can be static

Fixes the following Sparse warnings:

>> drivers/usb/gadget/udc/snps_udc_plat.c:31:6: sparse: symbol 'start_udc' was not declared. Should it be static?
>> drivers/usb/gadget/udc/snps_udc_plat.c:41:6: sparse: symbol 'stop_udc' was not declared. Should it be static?
>> drivers/usb/gadget/udc/snps_udc_plat.c:79:6: sparse: symbol 'udc_drd_work' was not declared. Should it be static?
Signed-off-by: NFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
上级 307bc11f
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
/* description */ /* description */
#define UDC_MOD_DESCRIPTION "Synopsys UDC platform driver" #define UDC_MOD_DESCRIPTION "Synopsys UDC platform driver"
void start_udc(struct udc *udc) static void start_udc(struct udc *udc)
{ {
if (udc->driver) { if (udc->driver) {
dev_info(udc->dev, "Connecting...\n"); dev_info(udc->dev, "Connecting...\n");
...@@ -38,7 +38,7 @@ void start_udc(struct udc *udc) ...@@ -38,7 +38,7 @@ void start_udc(struct udc *udc)
} }
} }
void stop_udc(struct udc *udc) static void stop_udc(struct udc *udc)
{ {
int tmp; int tmp;
u32 reg; u32 reg;
...@@ -76,7 +76,7 @@ void stop_udc(struct udc *udc) ...@@ -76,7 +76,7 @@ void stop_udc(struct udc *udc)
dev_info(udc->dev, "Device disconnected\n"); dev_info(udc->dev, "Device disconnected\n");
} }
void udc_drd_work(struct work_struct *work) static void udc_drd_work(struct work_struct *work)
{ {
struct udc *udc; struct udc *udc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册