From: Alexey Klimov Date: Wed, 27 Mar 2013 20:08:19 +0000 (+0400) Subject: media: radio-ma901: return ENODEV in probe if usb_device doesn't match X-Git-Tag: v3.9-rc6~20^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30b29537bcba070b3df8d7d24c1975676a1a6a4f;p=pandora-kernel.git media: radio-ma901: return ENODEV in probe if usb_device doesn't match Masterkit MA901 usb radio device shares USB ID with Atmel V-USB devices. This patch adds additional checks in usb_ma901radio_probe() and if product or manufacturer doesn't match we return -ENODEV and don't continue. This allows hid drivers to handle not MA901 device. Signed-off-by: Alexey Klimov Acked-by: Mauro Carvalho Chehab Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed