]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: vpif_capture: fix section mismatch
authorJohan Hovold <johan@kernel.org>
Fri, 17 Oct 2025 05:33:20 +0000 (07:33 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:17:04 +0000 (10:17 +0100)
commit5d25f923bdb4e37680b01037ec197593a3a5b78a
tree62dc64d87437068d72b469883e4855f55727ddf8
parent19f7dfa0c1d2f0b0208ecb5d76c74b7eec1035d1
media: vpif_capture: fix section mismatch

commit 0ef841113724166c3c484d0e9ae6db1eb5634fde upstream.

Platform drivers can be probed after their init sections have been
discarded (e.g. on probe deferral or manual rebind through sysfs) so the
probe function must not live in init.

Note that commit ffa1b391c61b ("V4L/DVB: vpif_cap/disp: Removed section
mismatch warning") incorrectly suppressed the modpost warning.

Fixes: ffa1b391c61b ("V4L/DVB: vpif_cap/disp: Removed section mismatch warning")
Fixes: 6ffefff5a9e7 ("V4L/DVB (12906c): V4L : vpif capture driver for DM6467")
Cc: stable@vger.kernel.org # 2.6.32
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/ti/davinci/vpif_capture.c