diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2012-05-11 10:25:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-11 19:54:54 -0400 |
commit | 758fc9860c19eceb56e5886a5225db623c521971 (patch) | |
tree | 81ecd0a568d9b484b6149d65dfa8cbce279620fe /drivers/usb/chipidea/udc.c | |
parent | f7daaa2d6e84f7be1e302d7bcba4f5f11567eddb (diff) |
usb: chipidea: use common definition for USBMODE bits
Some of the bits of USBMODE register are defined in <usb/ehci_def.h>,
use them instead of having our own definitions.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/udc.c')
-rw-r--r-- | drivers/usb/chipidea/udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index bdb034420fc..290946d618d 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c | |||
@@ -1606,7 +1606,7 @@ static irqreturn_t udc_irq(struct ci13xxx *udc) | |||
1606 | 1606 | ||
1607 | if (udc->udc_driver->flags & CI13XXX_REGS_SHARED) { | 1607 | if (udc->udc_driver->flags & CI13XXX_REGS_SHARED) { |
1608 | if (hw_read(udc, OP_USBMODE, USBMODE_CM) != | 1608 | if (hw_read(udc, OP_USBMODE, USBMODE_CM) != |
1609 | USBMODE_CM_DEVICE) { | 1609 | USBMODE_CM_DC) { |
1610 | spin_unlock(&udc->lock); | 1610 | spin_unlock(&udc->lock); |
1611 | return IRQ_NONE; | 1611 | return IRQ_NONE; |
1612 | } | 1612 | } |