Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: vpif_capture: fix section mismatch

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>

authored by

Johan Hovold and committed by
Hans Verkuil
0ef84111 f6be653b

+2 -2
+2 -2
drivers/media/platform/ti/davinci/vpif_capture.c
··· 1600 1600 * This creates device entries by register itself to the V4L2 driver and 1601 1601 * initializes fields of each channel objects 1602 1602 */ 1603 - static __init int vpif_probe(struct platform_device *pdev) 1603 + static int vpif_probe(struct platform_device *pdev) 1604 1604 { 1605 1605 struct vpif_subdev_info *subdevdata; 1606 1606 struct i2c_adapter *i2c_adap; ··· 1807 1807 1808 1808 static SIMPLE_DEV_PM_OPS(vpif_pm_ops, vpif_suspend, vpif_resume); 1809 1809 1810 - static __refdata struct platform_driver vpif_driver = { 1810 + static struct platform_driver vpif_driver = { 1811 1811 .driver = { 1812 1812 .name = VPIF_DRIVER_NAME, 1813 1813 .pm = &vpif_pm_ops,