aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-11-08 03:47:08 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-01-23 12:27:17 -0500
commit93596ef7db3e9bcc9306c3e93cf28ce1048858b6 (patch)
tree223c2d3e3b99c0d3f242da9fc4bb195af7b9fe07
parentaa104b2fea3ced2a562c480448a2f346c3ab61f4 (diff)
[media] omap_vout: fix section mismatch
Fix the following warning by using platform_driver_probe() instead of platform_driver_register(): WARNING: drivers/media/video/omap/omap-vout.o(.data+0x24): Section mismatch in reference from the variable omap_vout_driver to the function .init.text:omap_vout_probe() The variable omap_vout_driver references the function __init omap_vout_probe() Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Vaibhav Hiremath <hvaibhav@ti.com> Tested-by: Vaibhav Hiremath <hvaibhav@ti.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/omap/omap_vout.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/omap/omap_vout.c b/drivers/media/video/omap/omap_vout.c
index 1fb7d5bd5ec2..88cf9d952631 100644
--- a/drivers/media/video/omap/omap_vout.c
+++ b/drivers/media/video/omap/omap_vout.c
@@ -2268,13 +2268,12 @@ static struct platform_driver omap_vout_driver = {
2268 .driver = { 2268 .driver = {
2269 .name = VOUT_NAME, 2269 .name = VOUT_NAME,
2270 }, 2270 },
2271 .probe = omap_vout_probe,
2272 .remove = omap_vout_remove, 2271 .remove = omap_vout_remove,
2273}; 2272};
2274 2273
2275static int __init omap_vout_init(void) 2274static int __init omap_vout_init(void)
2276{ 2275{
2277 if (platform_driver_register(&omap_vout_driver) != 0) { 2276 if (platform_driver_probe(&omap_vout_driver, omap_vout_probe) != 0) {
2278 printk(KERN_ERR VOUT_NAME ":Could not register Video driver\n"); 2277 printk(KERN_ERR VOUT_NAME ":Could not register Video driver\n");
2279 return -EINVAL; 2278 return -EINVAL;
2280 } 2279 }