Staging: ft1000: Use module_pcmcia_driver
Macro module_pcmcia_driver is used for drivers whose init and exit paths does only register and unregister to pcmcia API. So, here remove some boilerplate code by using module_pcmcia_driver. Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
e719bba855
Коммит
5cc8c56841
|
@ -155,15 +155,4 @@ static struct pcmcia_driver ft1000_cs_driver = {
|
|||
.resume = ft1000_resume,
|
||||
};
|
||||
|
||||
static int __init init_ft1000_cs(void)
|
||||
{
|
||||
return pcmcia_register_driver(&ft1000_cs_driver);
|
||||
}
|
||||
|
||||
static void __exit exit_ft1000_cs(void)
|
||||
{
|
||||
pcmcia_unregister_driver(&ft1000_cs_driver);
|
||||
}
|
||||
|
||||
module_init(init_ft1000_cs);
|
||||
module_exit(exit_ft1000_cs);
|
||||
module_pcmcia_driver(ft1000_cs_driver);
|
||||
|
|
Загрузка…
Ссылка в новой задаче