Commit 588e0a2d authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: [eni] Correct way to prevent module unload (from shemminger@osdl.org).

parent 7a675c1b
...@@ -2272,8 +2272,6 @@ static int __devinit eni_init_one(struct pci_dev *pci_dev, ...@@ -2272,8 +2272,6 @@ static int __devinit eni_init_one(struct pci_dev *pci_dev,
DPRINTK("eni_init_one\n"); DPRINTK("eni_init_one\n");
MOD_INC_USE_COUNT; /* @@@ we don't support unloading yet */
if (pci_enable_device(pci_dev)) { if (pci_enable_device(pci_dev)) {
error = -EIO; error = -EIO;
goto out0; goto out0;
...@@ -2307,7 +2305,6 @@ static int __devinit eni_init_one(struct pci_dev *pci_dev, ...@@ -2307,7 +2305,6 @@ static int __devinit eni_init_one(struct pci_dev *pci_dev,
out1: out1:
kfree(eni_dev); kfree(eni_dev);
out0: out0:
MOD_DEC_USE_COUNT; /* @@@ we don't support unloading yet */
return error; return error;
} }
...@@ -2351,16 +2348,7 @@ static int __init eni_init(void) ...@@ -2351,16 +2348,7 @@ static int __init eni_init(void)
} }
static void __exit eni_cleanup(void)
{
/*
* Well, there's no way to get rid of the driver yet, so we don't
* have to clean up, right ? :-)
*/
}
module_init(eni_init); module_init(eni_init);
module_exit(eni_cleanup); /* @@@ since exit routine not defined, this module can not be unloaded */
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment