[media] usbvision: move init code to probe()
authorHans Verkuil <hans.verkuil@cisco.com>
Mon, 20 Jul 2015 12:59:38 +0000 (09:59 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 11 Aug 2015 09:55:26 +0000 (06:55 -0300)
commitdf3cfa6d9265f10fabc3c44f852d6b6bbf26029e
treea8cfc5c0f09439e8d1acfc7e88db3aed5973a12f
parent94384014f6ef8091bf31b68721761e68f77ad214
[media] usbvision: move init code to probe()

These things are only initialized if you start streaming video, but
they are also used in the disconnect function. So just init them
always during probe time.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/usbvision/usbvision-core.c
drivers/media/usb/usbvision/usbvision-video.c