projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef90748
)
USB: gadget: Use bitwise AND operator to test flags in ci13xxx_udc
author
Pavankumar Kondeti
<pkondeti@codeaurora.org>
Mon, 2 May 2011 06:26:28 +0000
(11:56 +0530)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Tue, 3 May 2011 17:25:24 +0000
(10:25 -0700)
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/ci13xxx_udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/ci13xxx_udc.c
b/drivers/usb/gadget/ci13xxx_udc.c
index 348d8a0e3454e8dfbea3f2bf4c133e8ed6428e17..03dff95348a72a268d496fc61880331858825f0b 100644
(file)
--- a/
drivers/usb/gadget/ci13xxx_udc.c
+++ b/
drivers/usb/gadget/ci13xxx_udc.c
@@
-310,7
+310,7
@@
static int hw_device_reset(struct ci13xxx *udc)
udc->udc_driver->notify_event(udc,
CI13XXX_CONTROLLER_RESET_EVENT);
- if (udc->udc_driver->flags &
&
CI13XXX_DISABLE_STREAMING)
+ if (udc->udc_driver->flags & CI13XXX_DISABLE_STREAMING)
hw_cwrite(CAP_USBMODE, USBMODE_SDIS, USBMODE_SDIS);
/* USBMODE should be configured step by step */