pcmcia: avoid messages on module (un)loading
printk() statements on module load or unload are frowned upon. Also, add a few __init or __exit declarations. Tested-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
@ -317,12 +317,12 @@ static struct pcmcia_driver atmel_driver = {
|
||||
.resume = atmel_resume,
|
||||
};
|
||||
|
||||
static int atmel_cs_init(void)
|
||||
static int __init atmel_cs_init(void)
|
||||
{
|
||||
return pcmcia_register_driver(&atmel_driver);
|
||||
}
|
||||
|
||||
static void atmel_cs_cleanup(void)
|
||||
static void __exit atmel_cs_cleanup(void)
|
||||
{
|
||||
pcmcia_unregister_driver(&atmel_driver);
|
||||
}
|
||||
|
Reference in New Issue
Block a user