Commit 39793c69 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mauro Carvalho Chehab

[media] mx2_camera: Convert it to platform driver

Converting it to platform code can make the code smaller.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 3fdd9797
...@@ -1619,21 +1619,10 @@ static struct platform_driver mx2_camera_driver = { ...@@ -1619,21 +1619,10 @@ static struct platform_driver mx2_camera_driver = {
}, },
.id_table = mx2_camera_devtype, .id_table = mx2_camera_devtype,
.remove = __devexit_p(mx2_camera_remove), .remove = __devexit_p(mx2_camera_remove),
.probe = mx2_camera_probe,
}; };
module_platform_driver(mx2_camera_driver);
static int __init mx2_camera_init(void)
{
return platform_driver_probe(&mx2_camera_driver, &mx2_camera_probe);
}
static void __exit mx2_camera_exit(void)
{
return platform_driver_unregister(&mx2_camera_driver);
}
module_init(mx2_camera_init);
module_exit(mx2_camera_exit);
MODULE_DESCRIPTION("i.MX27 SoC Camera Host driver"); MODULE_DESCRIPTION("i.MX27 SoC Camera Host driver");
MODULE_AUTHOR("Sascha Hauer <sha@pengutronix.de>"); MODULE_AUTHOR("Sascha Hauer <sha@pengutronix.de>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment