]> 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>
Sun, 20 Apr 2025 08:15:33 +0000 (10:15 +0200)
commit7631d176086c1bec0dc29ab3e90d5fe58ce38195
tree29aaffdf1542c3e4c7647b7b8ee9bcaf994240d4
parent679424f8b31446f90080befd0300ea915485b096
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