]> git.ipfire.org Git - people/ms/linux.git/commit
media: s5p_mfc: remove s5p_mfc_get_node_type() function
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 3 Dec 2013 13:12:51 +0000 (10:12 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Feb 2014 21:50:20 +0000 (13:50 -0800)
commitf6306cd4efd97884e4db59b76baea167bd8895df
treeeed18d381549d76e66995d9645e058c5307d148c
parent658c2f0d080d3eb6b3938e6de57712f1951bcce2
media: s5p_mfc: remove s5p_mfc_get_node_type() function

commit b80cb8dc4162bc954cc71efec192ed89f2061573 upstream.

s5p_mfc_get_node_type() relies on get_index() helper function, which in
turn relies on video_device index numbers assigned on driver
registration. All this code is not really needed, because there is
already access to respective video_device structures via common
s5p_mfc_dev structure. This fixes the issues introduced by patch
1056e4388b0454917a512618c8416a98628fc9ce ("v4l2-dev: Fix race condition
on __video_register_device"), which has been merged in v3.12-rc1.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/s5p-mfc/s5p_mfc.c
drivers/media/platform/s5p-mfc/s5p_mfc_common.h