]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: vim2m: print device name after registering device
authorMatthew Majewski <mattwmajewski@gmail.com>
Wed, 19 Feb 2025 19:05:01 +0000 (14:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:43:59 +0000 (07:43 +0200)
commit680cc5303f7c1f1eaccb63a645b5ab9fe36abade
tree4ed7d641f46c8070cc572c5438a5de86dc1b2229
parent32af5c1fdb9bc274f52ee0472d3b060b18e4aab4
media: vim2m: print device name after registering device

commit 143d75583f2427f3a97dba62413c4f0604867ebf upstream.

Move the v4l2_info() call displaying the video device name after the
device is actually registered.

This fixes a bug where the driver was always displaying "/dev/video0"
since it was reading from the vfd before it was registered.

Fixes: cf7f34777a5b ("media: vim2m: Register video device after setting up internals")
Cc: stable@vger.kernel.org
Signed-off-by: Matthew Majewski <mattwmajewski@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/test-drivers/vim2m.c