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
1 changed files with 1 additions and 11 deletions

View File

@ -411,17 +411,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");