On Wed, 11 Jan 2012, Fabio Estevam wrote: > Using module_platform_driver makes the code smaller and simpler. > > Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Isn't this covered by this: http://thread.gmane.org/gmane.linux.drivers.video-input-infrastructure/43200 Thanks Guennadi > --- > drivers/media/video/mx3_camera.c | 14 +------------- > 1 files changed, 1 insertions(+), 13 deletions(-) > > diff --git a/drivers/media/video/mx3_camera.c b/drivers/media/video/mx3_camera.c > index f44323f..7452277 100644 > --- a/drivers/media/video/mx3_camera.c > +++ b/drivers/media/video/mx3_camera.c > @@ -1286,19 +1286,7 @@ static struct platform_driver mx3_camera_driver = { > .remove = __devexit_p(mx3_camera_remove), > }; > > - > -static int __init mx3_camera_init(void) > -{ > - return platform_driver_register(&mx3_camera_driver); > -} > - > -static void __exit mx3_camera_exit(void) > -{ > - platform_driver_unregister(&mx3_camera_driver); > -} > - > -module_init(mx3_camera_init); > -module_exit(mx3_camera_exit); > +module_platform_driver(mx3_camera_driver); > > MODULE_DESCRIPTION("i.MX3x SoC Camera Host driver"); > MODULE_AUTHOR("Guennadi Liakhovetski <lg@xxxxxxx>"); > -- > 1.7.1 > --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html