Re: [PATCH] vpif_capture.c: v4l2_device_register() is called too late in vpif_probe()

2012-01-06 Thread Mauro Carvalho Chehab
On 13-12-2011 10:19, Hadli, Manjunath wrote: > Hans, > > On Tue, Dec 13, 2011 at 15:14:42, Hans Verkuil wrote: >> The function v4l2_device_register() is called too late in vpif_probe(). >> This meant that vpif_obj.v4l2_dev is accessed before it is initialized which >> caused a crash. >> >> This u

RE: [PATCH] vpif_capture.c: v4l2_device_register() is called too late in vpif_probe()

2011-12-13 Thread Hadli, Manjunath
Hans, On Tue, Dec 13, 2011 at 15:14:42, Hans Verkuil wrote: > The function v4l2_device_register() is called too late in vpif_probe(). > This meant that vpif_obj.v4l2_dev is accessed before it is initialized which > caused a crash. > > This used to work in the past, but video_register_device() is

[PATCH] vpif_capture.c: v4l2_device_register() is called too late in vpif_probe()

2011-12-13 Thread Hans Verkuil
The function v4l2_device_register() is called too late in vpif_probe(). This meant that vpif_obj.v4l2_dev is accessed before it is initialized which caused a crash. This used to work in the past, but video_register_device() is now actually using the v4l2_dev pointer. Note that vpif_display.c does