ip2: Fix crashes on load/unload
PATCH 1/1 ip2: Fix crashes on load/unload
From: Alan Cox <[email protected]>
This doesn't need to be two modules, and making it one cleans up the problem
---
drivers/char/ip2/Makefile | 4 ++-- drivers/char/ip2/ip2main.c | 23 ----------------------- 2 files changed, 2 insertions(+), 25 deletions(-)
drivers/char/ip2/Makefile +2 -2
@@ -2,7 +2,7 @@ # Makefile for the Computone IntelliPort Plus Driver # -obj-$(CONFIG_COMPUTONE) += ip2.o ip2main.o +obj-$(CONFIG_COMPUTONE) += ip2.o -ip2-objs := ip2base.o +ip2-objs := ip2base.o ip2main.o
drivers/char/ip2/ip2main.c +0 -23
@@ -346,27 +346,6 @@ have_requested_irq( char irq ) }/******************************************************************************/ -/* Function: init_module() */ -/* Parameters: None */ -/* Returns: Success (0) */ -/* */ -/* Description: */ -/* This is a required entry point for an installable module. It simply calls */ -/* the driver initialisation function and returns what it returns. */ -/******************************************************************************/ -#ifdef MODULE -static int __init -ip2_init_module (void ) -{ -#ifdef IP2DEBUG_INIT -printk (KERN_DEBUG "Loading module ...\n" ); -#endif -return 0 ; -} -module_init (ip2_init_module); -#endif /* MODULE */ - -/******************************************************************************/ /* Function: cleanup_module() */ /* Parameters: None */ /* Returns: Nothing */
@@ -779,8 +758,6 @@ out:return err; } -EXPORT_SYMBOL (ip2_loadmain); -/******************************************************************************/ /* Function: ip2_init_board() */ /* Parameters: Index of board in configuration structure */
Quoted 6 lines · Alan Cox
From: Alan Cox <[email protected]>
This doesn't need to be two modules, and making it one cleans up the problem
---
Seems OK, but all your patches misses S-O-F line...
Quoted 9 lines · Jiri Slaby
Quoted 6 lines · Alan Cox
From: Alan Cox <[email protected]>
This doesn't need to be two modules, and making it one cleans up the problem
---Seems OK, but all your patches misses S-O-F line...
s/S-O-F/S-O-B
Quoted 9 lines · On Mon, 19 May 2008 17:27:44 +0200 Jiri Slaby <[email protected]> wrote:
Quoted 6 lines · Alan Cox
From: Alan Cox <[email protected]>
This doesn't need to be two modules, and making it one cleans up the problem
---Seems OK, but all your patches misses S-O-F line...
series and this fix.
I'll go and have a stern word with the tool management gnome