upstream: [media] go7007: fix return 0 for unsupported devices in go7007_usb_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 19 Jun 2013 19:57:40 +0000 (16:57 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:48:38 +0000 (11:48 +0900)
commit458b963ef96463c3042a0e40573ff0650efb35a7
treebc564202fb81513f19a863d9156756feed7efaa1
parente1888e7e1fba613ecf0a50a4418d80b7387c1fbe
upstream: [media] go7007: fix return 0 for unsupported devices in go7007_usb_probe()

probe() should not return 0 for unsupported devices, but go7007_usb_probe() does.
The patch fixes it to return -ENODEV.
Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/go7007/go7007-usb.c