Lines 7042-7050
static int __init ipw2100_init(void)
Link Here
|
7042 |
/* If debug module parameter declared, set debug_level to that */ |
7042 |
/* If debug module parameter declared, set debug_level to that */ |
7043 |
if (debug != -1) |
7043 |
if (debug != -1) |
7044 |
ipw2100_debug_level = debug; |
7044 |
ipw2100_debug_level = debug; |
|
|
7045 |
ipw2100_proc_init(); |
7045 |
err = pci_module_init(&ipw2100_pci_driver); |
7046 |
err = pci_module_init(&ipw2100_pci_driver); |
7046 |
if (err == 0) |
7047 |
if (err != 0) |
7047 |
ipw2100_proc_init(); |
7048 |
ipw2100_proc_cleanup(); |
7048 |
return err; |
7049 |
return err; |
7049 |
} |
7050 |
} |
7050 |
|
7051 |
|
Lines 7055-7062
static int __init ipw2100_init(void)
Link Here
|
7055 |
static void __exit ipw2100_exit(void) |
7056 |
static void __exit ipw2100_exit(void) |
7056 |
{ |
7057 |
{ |
7057 |
/* FIXME: IPG: check that we have no instances of the devices open */ |
7058 |
/* FIXME: IPG: check that we have no instances of the devices open */ |
7058 |
ipw2100_proc_cleanup(); |
|
|
7059 |
pci_unregister_driver(&ipw2100_pci_driver); |
7059 |
pci_unregister_driver(&ipw2100_pci_driver); |
|
|
7060 |
ipw2100_proc_cleanup(); |
7060 |
} |
7061 |
} |
7061 |
|
7062 |
|
7062 |
module_init(ipw2100_init); |
7063 |
module_init(ipw2100_init); |