]> www.infradead.org Git - users/dwmw2/linux.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)
committerHans Verkuil <hverkuil@xs4all.nl>
Tue, 7 Jan 2025 11:21:39 +0000 (12:21 +0100)
commitfbb5298bf1a7b71723cd2bb193642429ceb0fb84
treec9c9a25c40864aa1f9dd6c8743600cfa34bc23c0
parentd76bf5267a6bcf25b95dfa1e71da0d3af3435682
media: mmp: Bring back registration of the device

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>
drivers/media/platform/marvell/mmp-driver.c