On 03/15/2013 11:37 AM, Fabio Porcedda : > Use module_platform_driver_probe() macro which makes the code smaller > and simpler. > > Signed-off-by: Fabio Porcedda <fabio.porce...@gmail.com> > Cc: Jean-Christophe PLAGNIOL-VILLARD <plagn...@jcrosoft.com> > Cc: Nicolas Ferre <nicolas.fe...@atmel.com>
Acked-by: Nicolas Ferre <nicolas.fe...@atmel.com> > --- > drivers/pcmcia/at91_cf.c | 12 +----------- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff --git a/drivers/pcmcia/at91_cf.c b/drivers/pcmcia/at91_cf.c > index 01463c7..4727368 100644 > --- a/drivers/pcmcia/at91_cf.c > +++ b/drivers/pcmcia/at91_cf.c > @@ -401,17 +401,7 @@ static struct platform_driver at91_cf_driver = { > > > /*--------------------------------------------------------------------------*/ > > -static int __init at91_cf_init(void) > -{ > - return platform_driver_probe(&at91_cf_driver, at91_cf_probe); > -} > -module_init(at91_cf_init); > - > -static void __exit at91_cf_exit(void) > -{ > - platform_driver_unregister(&at91_cf_driver); > -} > -module_exit(at91_cf_exit); > +module_platform_driver_probe(at91_cf_driver, at91_cf_probe); > > MODULE_DESCRIPTION("AT91 Compact Flash Driver"); > MODULE_AUTHOR("David Brownell"); > -- Nicolas Ferre _______________________________________________ Linux PCMCIA reimplementation list http://lists.infradead.org/mailman/listinfo/linux-pcmcia