Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43f50752 authored by Fabio Porcedda's avatar Fabio Porcedda Committed by Greg Kroah-Hartman
Browse files

pcmcia: at91_cf: use module_platform_driver_probe()



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

Signed-off-by: default avatarFabio Porcedda <fabio.porcedda@gmail.com>
Acked-by: default avatarJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ed9084ec
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -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");