From 33263fc5f9ac8e8cb2b22d06af3ce5ac1dd815e4 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Fri, 4 Feb 2000 07:40:19 +0000 Subject: Merge with Linux 2.3.32. --- drivers/char/ppdev.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'drivers/char/ppdev.c') diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c index 5afcec0c9..71bb3a18c 100644 --- a/drivers/char/ppdev.c +++ b/drivers/char/ppdev.c @@ -43,6 +43,7 @@ */ #include +#include #include #include #include @@ -578,11 +579,7 @@ static struct file_operations pp_fops = { pp_release }; -#ifdef MODULE -#define pp_init init_module -#endif - -int pp_init (void) +static int __init ppdev_init (void) { if (register_chrdev (PP_MAJOR, CHRDEV, &pp_fops)) { printk (KERN_WARNING CHRDEV ": unable to get major %d\n", @@ -594,10 +591,11 @@ int pp_init (void) return 0; } -#ifdef MODULE -void cleanup_module (void) +static void __exit ppdev_cleanup (void) { /* Clean up all parport stuff */ unregister_chrdev (PP_MAJOR, CHRDEV); } -#endif /* MODULE */ + +module_init(ppdev_init); +module_exit(ppdev_cleanup); -- cgit v1.2.3