media: vim2m: print device name after registering device
[ Upstream commit 143d75583f2427f3a97dba62413c4f0604867ebf ]
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:
Sasha Levin <sashal@kernel.org>
Loading