]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: mmp: Bring back registration of the device
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 31 Dec 2024 19:04:34 +0000 (20:04 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Feb 2025 09:05:33 +0000 (10:05 +0100)
commit8e95e0933aff23fd2dd6962d6d4f8156e4c69c69
tree60b452b7dc2137e579bd42d5fc59864415d2eae1
parentb64b7730879a26a5ca5f5acc4d3af71f4e9175e8
media: mmp: Bring back registration of the device

commit fbb5298bf1a7b71723cd2bb193642429ceb0fb84 upstream.

In commit 4af65141e38e ("media: marvell: cafe: Register V4L2 device
earlier"), a call to v4l2_device_register() was moved away from
mccic_register() into its caller, marvell/cafe's cafe_pci_probe().
This is not the only caller though -- there's also marvell/mmp.

Add v4l2_device_register() into mmpcam_probe() to unbreak the MMP camera
driver, in a fashion analogous to what's been done to the Cafe driver.
Same for the teardown path.

Fixes: 4af65141e38e ("media: marvell: cafe: Register V4L2 device earlier")
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Cc: stable@vger.kernel.org # v6.6+
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/marvell/mmp-driver.c