From 9fb41294803cc92d962f16d61619bd8d19fd0697 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Sat, 13 Oct 2007 10:54:48 +0200 Subject: ivtv: fix circular locking (bug 9037) From: Hans Verkuil If you try to access the video device from within an udev rule, then you get into a circular locking situation. Changed the driver to postpone the registration of the devices until everything else has been fully initialized, so that the newly created device can be used immediately. Signed-off-by: Hans Verkuil --- linux/drivers/media/video/ivtv/ivtv-streams.h | 1 + 1 file changed, 1 insertion(+) (limited to 'linux/drivers/media/video/ivtv/ivtv-streams.h') diff --git a/linux/drivers/media/video/ivtv/ivtv-streams.h b/linux/drivers/media/video/ivtv/ivtv-streams.h index 8f5f5b1c7..3d76a415f 100644 --- a/linux/drivers/media/video/ivtv/ivtv-streams.h +++ b/linux/drivers/media/video/ivtv/ivtv-streams.h @@ -22,6 +22,7 @@ #define IVTV_STREAMS_H int ivtv_streams_setup(struct ivtv *itv); +int ivtv_streams_register(struct ivtv *itv); void ivtv_streams_cleanup(struct ivtv *itv); /* Capture related */ -- cgit v1.2.3