USB: serial: mos7840: Fixed MCS7820 device attach problem
authorDonald Lee <donald@asix.com.tw>
Wed, 14 Mar 2012 07:26:33 +0000 (15:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 2 Apr 2012 16:52:33 +0000 (09:52 -0700)
commit7b2a7db9fd2de45d1be277679d89f6bf8c56fd32
treeb1431738e4441a07971a955088a36d5fd5c610fb
parent30f0518605762cf1dbf3379acc573cf129cbf593
USB: serial: mos7840: Fixed MCS7820 device attach problem

commit 093ea2d3a766cb8a4c4de57efec6c0a127a58792 upstream.

A MCS7820 device supports two serial ports and a MCS7840 device supports
four serial ports. Both devices use the same driver, but the attach function
in driver was unable to correctly handle the port numbers for MCS7820
device. This problem has been fixed in this patch and this fix has been
verified on x86 Linux kernel 3.2.9 with both MCS7820 and MCS7840 devices.

Signed-off-by: Donald Lee <donald@asix.com.tw>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mos7840.c