diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-22 18:06:44 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-22 18:06:44 -0200 |
commit | fceb8e0cafa24afb15f841c14fbe802e42c13dfe (patch) | |
tree | 7645da02cedb035f5f3b4883f59b529524070a32 /linux/Documentation/video4linux/v4l2-framework.txt | |
parent | 8c0898eba0b293726f0d339021c14fcbcb7157af (diff) | |
parent | 8e61aa005719a9c2c7a8a1b8d0f99da2706b4030 (diff) | |
download | mediapointer-dvb-s2-fceb8e0cafa24afb15f841c14fbe802e42c13dfe.tar.gz mediapointer-dvb-s2-fceb8e0cafa24afb15f841c14fbe802e42c13dfe.tar.bz2 |
merge: http://www.linuxtv.org/hg/~hverkuil/v4l-dvb-saa7146-2
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/Documentation/video4linux/v4l2-framework.txt')
-rw-r--r-- | linux/Documentation/video4linux/v4l2-framework.txt | 6 |
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: |