diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-08-08 06:27:40 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-09-29 11:20:25 -0400 |
commit | 06b3a1d12f41b592972643f8b84015d6c03dc576 (patch) | |
tree | 9c2e9450a74f3cea78d8819bfcd305f3f6c40b0d /drivers/scsi/pcmcia | |
parent | 2e9b981a7c63ee8278df6823f8389d69dad1a499 (diff) |
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>
Diffstat (limited to 'drivers/scsi/pcmcia')
-rw-r--r-- | drivers/scsi/pcmcia/aha152x_stub.c | 3 | ||||
-rw-r--r-- | drivers/scsi/pcmcia/nsp_cs.c | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/drivers/scsi/pcmcia/aha152x_stub.c b/drivers/scsi/pcmcia/aha152x_stub.c index 49cbea33c141..e77dd02eccdd 100644 --- a/drivers/scsi/pcmcia/aha152x_stub.c +++ b/drivers/scsi/pcmcia/aha152x_stub.c | |||
@@ -85,8 +85,6 @@ static void aha152x_release_cs(struct pcmcia_device *link); | |||
85 | static void aha152x_detach(struct pcmcia_device *p_dev); | 85 | static void aha152x_detach(struct pcmcia_device *p_dev); |
86 | static int aha152x_config_cs(struct pcmcia_device *link); | 86 | static int aha152x_config_cs(struct pcmcia_device *link); |
87 | 87 | ||
88 | static struct pcmcia_device *dev_list; | ||
89 | |||
90 | static int aha152x_probe(struct pcmcia_device *link) | 88 | static int aha152x_probe(struct pcmcia_device *link) |
91 | { | 89 | { |
92 | scsi_info_t *info; | 90 | scsi_info_t *info; |
@@ -231,7 +229,6 @@ static int __init init_aha152x_cs(void) | |||
231 | static void __exit exit_aha152x_cs(void) | 229 | static void __exit exit_aha152x_cs(void) |
232 | { | 230 | { |
233 | pcmcia_unregister_driver(&aha152x_cs_driver); | 231 | pcmcia_unregister_driver(&aha152x_cs_driver); |
234 | BUG_ON(dev_list != NULL); | ||
235 | } | 232 | } |
236 | 233 | ||
237 | module_init(init_aha152x_cs); | 234 | module_init(init_aha152x_cs); |
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c index 0f604d613656..07b73ca2a7e0 100644 --- a/drivers/scsi/pcmcia/nsp_cs.c +++ b/drivers/scsi/pcmcia/nsp_cs.c | |||
@@ -1800,14 +1800,11 @@ static struct pcmcia_driver nsp_driver = { | |||
1800 | 1800 | ||
1801 | static int __init nsp_cs_init(void) | 1801 | static int __init nsp_cs_init(void) |
1802 | { | 1802 | { |
1803 | nsp_msg(KERN_INFO, "loading..."); | ||
1804 | |||
1805 | return pcmcia_register_driver(&nsp_driver); | 1803 | return pcmcia_register_driver(&nsp_driver); |
1806 | } | 1804 | } |
1807 | 1805 | ||
1808 | static void __exit nsp_cs_exit(void) | 1806 | static void __exit nsp_cs_exit(void) |
1809 | { | 1807 | { |
1810 | nsp_msg(KERN_INFO, "unloading..."); | ||
1811 | pcmcia_unregister_driver(&nsp_driver); | 1808 | pcmcia_unregister_driver(&nsp_driver); |
1812 | } | 1809 | } |
1813 | 1810 | ||