mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 12:42:02 +00:00
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:
parent
ed9084ecfc
commit
43f5075225
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user