diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-02 14:03:08 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-05-02 14:03:08 -0400 |
commit | 1be1d6b7f3f6e3a87f872dd5e7a867d03d8a6851 (patch) | |
tree | 102ef63f93d7d6d8400fc88158cc859a92a2b44f /drivers/usb/serial/mos7840.c | |
parent | 37b6a04fd9fc887bbcc1a27d9354a5e7a5a4cdd8 (diff) | |
parent | 62fd2cac5bf5cf9e6fcb2fc40b32e7271e605c53 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (32 commits)
USB GADGET/PERIPHERAL: g_file_storage Bulk-Only Transport compliance, clear-feature ignore
USB GADGET/PERIPHERAL: g_file_storage Bulk-Only Transport compliance
usb_serial: some coding style fixes
USB: Remove redundant dependencies on USB_ATM.
USB: UHCI: disable remote wakeup when it's not needed
USB: OHCI: work around bogus compiler warning
USB: add Cypress c67x00 OTG controller HCD driver
USB: add Cypress c67x00 OTG controller core driver
USB: add Cypress c67x00 low level interface code
USB: airprime: unlock mutex instead of trying to lock it again
USB: storage: Update mailling list address
USB: storage: UNUSUAL_DEVS() for PanDigital Picture frame.
USB: Add the USB 2.0 extension descriptor.
USB: add more FTDI device ids
USB: fix cannot work usb storage when using ohci-sm501
usb: gadget zero timer init fix
usb: gadget zero style fixups (mostly whitespace)
usb serial gadget: CDC ACM fixes
usb: pxa27x_udc driver
USB: INTOVA Pixtreme camera mass storage device
...
Diffstat (limited to 'drivers/usb/serial/mos7840.c')
-rw-r--r-- | drivers/usb/serial/mos7840.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 6bcb82d3911a..78f2f6db494d 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -1713,7 +1713,7 @@ static int mos7840_tiocmset(struct usb_serial_port *port, struct file *file, | |||
1713 | { | 1713 | { |
1714 | struct moschip_port *mos7840_port; | 1714 | struct moschip_port *mos7840_port; |
1715 | unsigned int mcr; | 1715 | unsigned int mcr; |
1716 | unsigned int status; | 1716 | int status; |
1717 | 1717 | ||
1718 | dbg("%s - port %d", __func__, port->number); | 1718 | dbg("%s - port %d", __func__, port->number); |
1719 | 1719 | ||
@@ -1740,11 +1740,10 @@ static int mos7840_tiocmset(struct usb_serial_port *port, struct file *file, | |||
1740 | 1740 | ||
1741 | mos7840_port->shadowMCR = mcr; | 1741 | mos7840_port->shadowMCR = mcr; |
1742 | 1742 | ||
1743 | status = 0; | ||
1744 | status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, mcr); | 1743 | status = mos7840_set_uart_reg(port, MODEM_CONTROL_REGISTER, mcr); |
1745 | if (status < 0) { | 1744 | if (status < 0) { |
1746 | dbg("setting MODEM_CONTROL_REGISTER Failed\n"); | 1745 | dbg("setting MODEM_CONTROL_REGISTER Failed\n"); |
1747 | return -1; | 1746 | return status; |
1748 | } | 1747 | } |
1749 | 1748 | ||
1750 | return 0; | 1749 | return 0; |