[PATCH] Use __init and __exit in pktcdvd

2005-03-12 Thread Peter Osterlund
This patch adds __init and __exit annotations to the pktcdvd driver.

Signed-off-by: Peter Osterlund <[EMAIL PROTECTED]>
---

 linux-petero/drivers/block/pktcdvd.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/block/pktcdvd.c~pktcdvd-module-init drivers/block/pktcdvd.c
--- linux/drivers/block/pktcdvd.c~pktcdvd-module-init   2005-03-11 
22:23:57.0 +0100
+++ linux-petero/drivers/block/pktcdvd.c2005-03-11 22:23:57.0 
+0100
@@ -2624,7 +2624,7 @@ static struct miscdevice pkt_misc = {
.fops   = _ctl_fops
 };
 
-static int pkt_init(void)
+static int __init pkt_init(void)
 {
int ret;
 
@@ -2660,7 +2660,7 @@ out2:
return ret;
 }
 
-static void pkt_exit(void)
+static void __exit pkt_exit(void)
 {
remove_proc_entry("pktcdvd", proc_root_driver);
misc_deregister(_misc);
_

-- 
Peter Osterlund - [EMAIL PROTECTED]
http://web.telia.com/~u89404340
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH] Use __init and __exit in pktcdvd

2005-03-12 Thread Peter Osterlund
This patch adds __init and __exit annotations to the pktcdvd driver.

Signed-off-by: Peter Osterlund [EMAIL PROTECTED]
---

 linux-petero/drivers/block/pktcdvd.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN drivers/block/pktcdvd.c~pktcdvd-module-init drivers/block/pktcdvd.c
--- linux/drivers/block/pktcdvd.c~pktcdvd-module-init   2005-03-11 
22:23:57.0 +0100
+++ linux-petero/drivers/block/pktcdvd.c2005-03-11 22:23:57.0 
+0100
@@ -2624,7 +2624,7 @@ static struct miscdevice pkt_misc = {
.fops   = pkt_ctl_fops
 };
 
-static int pkt_init(void)
+static int __init pkt_init(void)
 {
int ret;
 
@@ -2660,7 +2660,7 @@ out2:
return ret;
 }
 
-static void pkt_exit(void)
+static void __exit pkt_exit(void)
 {
remove_proc_entry(pktcdvd, proc_root_driver);
misc_deregister(pkt_misc);
_

-- 
Peter Osterlund - [EMAIL PROTECTED]
http://web.telia.com/~u89404340
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/