patch-2.4.22 linux-2.4.22/drivers/ide/ide-pnp.c
Next file: linux-2.4.22/drivers/ide/ide-probe.c
Previous file: linux-2.4.22/drivers/ide/ide-io.c
Back to the patch index
Back to the overall index
- Lines: 44
- Date:
2003-08-25 04:44:41.000000000 -0700
- Orig file:
linux-2.4.21/drivers/ide/ide-pnp.c
- Orig date:
2003-06-13 07:51:33.000000000 -0700
diff -urN linux-2.4.21/drivers/ide/ide-pnp.c linux-2.4.22/drivers/ide/ide-pnp.c
@@ -16,6 +16,7 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include <linux/module.h>
#include <linux/ide.h>
#include <linux/init.h>
@@ -98,7 +99,7 @@
* Probe for ISA PnP IDE interfaces.
*/
-void __init pnpide_init(int enable)
+static void pnpide_init(int enable)
{
struct pci_dev *dev = NULL;
struct pnp_dev_t *dev_type;
@@ -155,3 +156,26 @@
}
}
}
+
+static void __init pnpide_begin(void)
+{
+ pnpide_init(1);
+}
+
+static int pnpide_init_module(void)
+{
+ ide_register_driver(pnpide_begin);
+ return 0;
+}
+
+static void pnpide_unload(void)
+{
+ pnpide_init(0);
+}
+
+module_init(pnpide_init_module);
+module_exit(pnpide_unload);
+
+MODULE_AUTHOR("Andrey Panin");
+MODULE_DESCRIPTION("Enabler for ISAPNP IDE devices");
+MODULE_LICENSE("GPL");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)