]> 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, 25 Apr 2025 08:43:35 +0000 (10:43 +0200)
commit455fd2951b01715d0596a4ba3638593cab7883f4
treea6d53c62f0a3d27b55c787d976ead0297f899cbb
parentcf5f7bb4e0d786f4d9d50ae6b5963935eab71d75
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