Skip to content

Commit

Permalink
[media] mx2_camera: Convert it to platform driver
Browse files Browse the repository at this point in the history
Converting it to platform code can make the code smaller.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Fabio Estevam authored and Mauro Carvalho Chehab committed Jan 5, 2013
1 parent 3fdd979 commit 39793c6
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions drivers/media/platform/soc_camera/mx2_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -1619,21 +1619,10 @@ static struct platform_driver mx2_camera_driver = {
},
.id_table = mx2_camera_devtype,
.remove = __devexit_p(mx2_camera_remove),
.probe = mx2_camera_probe,
};


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_platform_driver(mx2_camera_driver);

MODULE_DESCRIPTION("i.MX27 SoC Camera Host driver");
MODULE_AUTHOR("Sascha Hauer <sha@pengutronix.de>");
Expand Down

0 comments on commit 39793c6

Please sign in to comment.