[PATCH] uml: hot-unplug code cleanup
Clean up the hot-unplugging code. There is now an id procedure which is called to figure out what device we're talking to. The error messages from that are now done from mconsole_remove instead of the driver. remove is now called with the device number, after it has been checked, so doesn't need to do sanity checking on it. Signed-off-by: Jeff Dike <jdike@addtoit.com> Cc: Paolo Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
fc47a0d18a
commit
29d56cfe3c
@@ -153,10 +153,10 @@ void remove_gdb_cb(void *unused)
|
||||
exit_debugger_cb(NULL);
|
||||
}
|
||||
|
||||
int gdb_remove(char *unused)
|
||||
int gdb_remove(int unused)
|
||||
{
|
||||
initial_thread_cb(remove_gdb_cb, NULL);
|
||||
return(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void signal_usr1(int sig)
|
||||
|
Reference in New Issue
Block a user