summaryrefslogtreecommitdiff
path: root/linux/Documentation
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-01-15 10:09:05 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2009-01-15 10:09:05 +0100
commit21ddc1581a225df18d39e8742ced6d3d2bd89003 (patch)
treefe1eacf771c262ba14519ab9b4b018b32ebbf5a5 /linux/Documentation
parent5e9c7b1b42b68600cc50c26061636c43d202aaeb (diff)
downloadmediapointer-dvb-s2-21ddc1581a225df18d39e8742ced6d3d2bd89003.tar.gz
mediapointer-dvb-s2-21ddc1581a225df18d39e8742ced6d3d2bd89003.tar.bz2
v4l2 doc: explain why v4l2_device_unregister_subdev() has to be called.
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/Documentation')
-rw-r--r--linux/Documentation/video4linux/v4l2-framework.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/Documentation/video4linux/v4l2-framework.txt b/linux/Documentation/video4linux/v4l2-framework.txt
index ff124374e..cc3506242 100644
--- a/linux/Documentation/video4linux/v4l2-framework.txt
+++ b/linux/Documentation/video4linux/v4l2-framework.txt
@@ -340,6 +340,12 @@ Make sure to call v4l2_device_unregister_subdev(sd) when the remove() callback
is called. This will unregister the sub-device from the bridge driver. It is
safe to call this even if the sub-device was never registered.
+You need to do this because when the bridge driver destroys the i2c adapter
+the remove() callbacks are called of the i2c devices on that adapter.
+After that the corresponding v4l2_subdev structures are invalid, so they
+have to be unregistered first. Calling v4l2_device_unregister_subdev(sd)
+from the remove() callback ensures that this is always done correctly.
+
The bridge driver also has some helper functions it can use: