diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2013-12-03 10:14:29 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-27 21:42:42 -0200 |
commit | 6c3df5da67f1f53df78c7e20cd53a481dc28eade (patch) | |
tree | e5b9351c72f9622fa1f713504161f6110e9e6dac /drivers/media/dvb-frontends/dib7000p.c | |
parent | 587d1b06e07b4a079453c74ba9edf17d21931049 (diff) | |
download | blackbird-op-linux-6c3df5da67f1f53df78c7e20cd53a481dc28eade.tar.gz blackbird-op-linux-6c3df5da67f1f53df78c7e20cd53a481dc28eade.zip |
[media] media: v4l2-dev: fix video device index assignment
The side effect of commit 1056e4388b045 ("v4l2-dev: Fix race condition on
__video_register_device") is the increased number of index value assigned
on video_device registration. Before that commit video_devices were
numbered from 0, after it, the indexes starts from 1, because get_index()
always count the device, which is being registered. Some device drivers
rely on video_device index number for internal purposes, i.e. s5p-mfc
driver stopped working after that patch. This patch restores the old method
of numbering the video_device indexes.
Cc: stable@vger.kernel.org # for v3.12
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Ricardo Ribalda <ricardo.ribalda@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/dvb-frontends/dib7000p.c')
0 files changed, 0 insertions, 0 deletions