summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorPavankumar Kondeti <pkondeti@codeaurora.org>2011-05-02 08:26:28 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2011-05-03 19:25:24 +0200
commit8c2387a71ccbae699cfdc315382afc9a89b01b2d (patch)
tree3ba298792e9a17bd51712d0a5cb015365ad0b60a /drivers/usb
parentUSB: gadget: Fix typo (s/EBUSY/-EBUSY) in ci13xxx_udc (diff)
downloadlinux-8c2387a71ccbae699cfdc315382afc9a89b01b2d.tar.xz
linux-8c2387a71ccbae699cfdc315382afc9a89b01b2d.zip
USB: gadget: Use bitwise AND operator to test flags in ci13xxx_udc
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/gadget/ci13xxx_udc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/ci13xxx_udc.c b/drivers/usb/gadget/ci13xxx_udc.c
index 348d8a0e3454..03dff95348a7 100644
--- 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 */