patch-2.3.47 linux/drivers/usb/printer.c

Next file: linux/drivers/usb/uhci-debug.h
Previous file: linux/drivers/usb/plusb.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.46/linux/drivers/usb/printer.c linux/drivers/usb/printer.c
@@ -432,15 +432,12 @@
 	minor:		USBLP_MINOR_BASE
 };
 
-#ifdef MODULE
-void cleanup_module(void)
+static void __exit usb_printer_cleanup(void)
 {
 	usb_deregister(&usblp_driver);
 }
-int init_module(void)
-#else
-int usb_printer_init(void)
-#endif
+
+static int __init usb_printer_init(void)
 {
 	if (usb_register(&usblp_driver))
 		return -1;
@@ -448,4 +445,5 @@
 	return 0;
 }
 
-__initcall(usb_printer_init);
+module_init(usb_printer_init);
+module_exit(usb_printer_cleanup);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)