pcmcia: at91_cf: use module_platform_driver_probe()

Use module_platform_driver_probe() macro which makes the code smaller
and simpler.

Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Fabio Porcedda 2013-06-06 10:24:19 +02:00 committed by Greg Kroah-Hartman
parent ed9084ecfc
commit 43f5075225

View File

@ -411,17 +411,7 @@ static struct platform_driver at91_cf_driver = {
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
static int __init at91_cf_init(void) module_platform_driver_probe(at91_cf_driver, at91_cf_probe);
{
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_DESCRIPTION("AT91 Compact Flash Driver"); MODULE_DESCRIPTION("AT91 Compact Flash Driver");
MODULE_AUTHOR("David Brownell"); MODULE_AUTHOR("David Brownell");