]> git.baikalelectronics.ru Git - kernel.git/commit
media: radio-ma901: return ENODEV in probe if usb_device doesn't match
authorAlexey Klimov <klimov.linux@gmail.com>
Wed, 27 Mar 2013 20:08:19 +0000 (00:08 +0400)
committerJiri Kosina <jkosina@suse.cz>
Fri, 29 Mar 2013 14:13:40 +0000 (15:13 +0100)
commita58da84303e2eab488d20e2079ab284b6ca13a62
treea268c979c61a078fc2f07b4268b8ff0e8c407017
parentf0cbb58bb017ef9206fa27b6483662f9db765fac
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 <klimov.linux@gmail.com>
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/media/radio/radio-ma901.c