From: Johan Hovold Date: Tue, 3 Jan 2017 15:39:53 +0000 (+0100) Subject: USB: serial: mos7720: fix parallel probe X-Git-Tag: v3.2.87~126 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52eebd5e645bdf78d2287705afa34ba683d4302a;p=pandora-kernel.git USB: serial: mos7720: fix parallel probe commit fde1faf872ed86d88e245191bc15a8e57368cd1c upstream. A static usb-serial-driver structure that is used to initialise the interrupt URB was modified during probe depending on the currently probed device type, something which could break a parallel probe of a device of a different type. Fix this up by overriding the default completion callback for MCS7715 devices in attach() instead. We may want to use two usb-serial driver instances for the two types later. Fixes: fb088e335d78 ("USB: serial: add support for serial port on the moschip 7715") Signed-off-by: Johan Hovold Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed