summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2014-08-27 17:28:18 +0800
committerMarek Vasut <marex@denx.de>2014-09-02 14:32:15 +0200
commit06fa91cd671eae291b05e2138d291c56ddd394df (patch)
tree5c55bf000b519c778cb3148ef4f74f8a6c00198d /drivers/usb
parentf9abd4b415fea2615491e421633ade741224d243 (diff)
USB: gadget: s3c: get rid of debug compile warning
When enable debug option to compile, it will give the following warning, this patch is used to get rid of it. --->8--- warning: 'flags' is used uninitialized in this function [-Wuninitialized] ---8<--- Signed-off-by: Bo Shen <voice.shen@atmel.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/s3c_udc_otg.c10
-rw-r--r--drivers/usb/gadget/s3c_udc_otg_xfer_dma.c6
2 files changed, 8 insertions, 8 deletions
diff --git a/drivers/usb/gadget/s3c_udc_otg.c b/drivers/usb/gadget/s3c_udc_otg.c
index ce2494c2f3..b9816dfe30 100644
--- a/drivers/usb/gadget/s3c_udc_otg.c
+++ b/drivers/usb/gadget/s3c_udc_otg.c
@@ -288,7 +288,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
{
struct s3c_udc *dev = the_controller;
int retval = 0;
- unsigned long flags;
+ unsigned long flags = 0;
debug_cond(DEBUG_SETUP != 0, "%s: %s\n", __func__, "no name");
@@ -336,7 +336,7 @@ int usb_gadget_register_driver(struct usb_gadget_driver *driver)
int usb_gadget_unregister_driver(struct usb_gadget_driver *driver)
{
struct s3c_udc *dev = the_controller;
- unsigned long flags;
+ unsigned long flags = 0;
if (!dev)
return -ENODEV;
@@ -580,7 +580,7 @@ static int s3c_ep_enable(struct usb_ep *_ep,
{
struct s3c_ep *ep;
struct s3c_udc *dev;
- unsigned long flags;
+ unsigned long flags = 0;
debug("%s: %p\n", __func__, _ep);
@@ -644,7 +644,7 @@ static int s3c_ep_enable(struct usb_ep *_ep,
static int s3c_ep_disable(struct usb_ep *_ep)
{
struct s3c_ep *ep;
- unsigned long flags;
+ unsigned long flags = 0;
debug("%s: %p\n", __func__, _ep);
@@ -702,7 +702,7 @@ static int s3c_dequeue(struct usb_ep *_ep, struct usb_request *_req)
{
struct s3c_ep *ep;
struct s3c_request *req;
- unsigned long flags;
+ unsigned long flags = 0;
debug("%s: %p\n", __func__, _ep);
diff --git a/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c b/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
index 06dfeed905..4f69b22a25 100644
--- a/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
+++ b/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
@@ -466,7 +466,7 @@ static int s3c_udc_irq(int irq, void *_dev)
struct s3c_udc *dev = _dev;
u32 intr_status;
u32 usb_status, gintmsk;
- unsigned long flags;
+ unsigned long flags = 0;
spin_lock_irqsave(&dev->lock, flags);
@@ -585,7 +585,7 @@ static int s3c_queue(struct usb_ep *_ep, struct usb_request *_req,
struct s3c_request *req;
struct s3c_ep *ep;
struct s3c_udc *dev;
- unsigned long flags;
+ unsigned long flags = 0;
u32 ep_num, gintsts;
req = container_of(_req, struct s3c_request, req);
@@ -1033,7 +1033,7 @@ static int s3c_udc_set_halt(struct usb_ep *_ep, int value)
{
struct s3c_ep *ep;
struct s3c_udc *dev;
- unsigned long flags;
+ unsigned long flags = 0;
u8 ep_num;
ep = container_of(_ep, struct s3c_ep, ep);