From: Johan Hovold Date: Fri, 26 Jul 2013 09:55:18 +0000 (+0200) Subject: USB: mos7840: fix device-type detection X-Git-Tag: v3.11-rc4~26^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40c24f2893ba0ba7df485871f6aac0c197ceef5b;p=pandora-kernel.git USB: mos7840: fix device-type detection Fix race in device-type detection introduced by commit 0eafe4de ("USB: serial: mos7840: add support for MCS7810 devices") which used a static variable to hold the device type. Move type detection to probe and use serial data to store the device type. Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed