Commit ab1d53d5 authored by kbuild test robot's avatar kbuild test robot Committed by 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: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment