summaryrefslogtreecommitdiffstats
path: root/drivers/net/irda/sir_kthread.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-01-10 13:10:02 -0800
committerDavid S. Miller <davem@davemloft.net>2006-01-10 13:10:02 -0800
commit214ad78437544b20c3c0d5c2acb24650ce6e4db8 (patch)
tree3e4b62bb43fb36bc0f1151038c1f458ff8f43fbc /drivers/net/irda/sir_kthread.c
parent79a34648e488a41be92369c72aa9784bd4d741f9 (diff)
downloadop-kernel-dev-214ad78437544b20c3c0d5c2acb24650ce6e4db8.zip
op-kernel-dev-214ad78437544b20c3c0d5c2acb24650ce6e4db8.tar.gz
[IRDA]: kill drivers/net/irda/sir_core.c
EXPORT_SYMBOL's do nowadays belong to the files where the actual functions are. Moving the module_init/module_exit to the file with the actual functions has the advantage of saving a few bytes due to the removal of two functions. Signed-off-by: Adrian Bunk <bunk@stusta.de> Acked-by: Jean Tourrilhes <jt@hpl.hp.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/irda/sir_kthread.c')
-rw-r--r--drivers/net/irda/sir_kthread.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/net/irda/sir_kthread.c b/drivers/net/irda/sir_kthread.c
index c650543..e3904d6 100644
--- a/drivers/net/irda/sir_kthread.c
+++ b/drivers/net/irda/sir_kthread.c
@@ -466,7 +466,7 @@ int sirdev_schedule_request(struct sir_dev *dev, int initial_state, unsigned par
return 0;
}
-int __init irda_thread_create(void)
+static int __init irda_thread_create(void)
{
struct completion startup;
int pid;
@@ -488,7 +488,7 @@ int __init irda_thread_create(void)
return 0;
}
-void __exit irda_thread_join(void)
+static void __exit irda_thread_join(void)
{
if (irda_rq_queue.thread) {
flush_irda_queue();
@@ -499,3 +499,10 @@ void __exit irda_thread_join(void)
}
}
+module_init(irda_thread_create);
+module_exit(irda_thread_join);
+
+MODULE_AUTHOR("Martin Diehl <info@mdiehl.de>");
+MODULE_DESCRIPTION("IrDA SIR core");
+MODULE_LICENSE("GPL");
+
OpenPOWER on IntegriCloud