X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fisdn%2Fhisax%2Fhisax_fcpcipnp.c;h=e8fd6af948c3dc7bd1de79e00b82fd1262238ac7;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=98c408e3f30957ea7821fd4949f45a56ee74a82b;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/isdn/hisax/hisax_fcpcipnp.c b/drivers/isdn/hisax/hisax_fcpcipnp.c index 98c408e3f..e8fd6af94 100644 --- a/drivers/isdn/hisax/hisax_fcpcipnp.c +++ b/drivers/isdn/hisax/hisax_fcpcipnp.c @@ -45,8 +45,8 @@ #ifdef CONFIG_HISAX_DEBUG static int debug = 0; /* static int hdlcfifosize = 32; */ -MODULE_PARM(debug, "i"); -/* MODULE_PARM(hdlcfifosize, "i"); */ +module_param(debug, int, 0); +/* module_param(hdlcfifosize, int, 0); */ #endif MODULE_AUTHOR("Kai Germaschewski /Karsten Keil "); @@ -81,7 +81,7 @@ MODULE_DEVICE_TABLE(isapnp, fcpnp_ids); #endif static int protocol = 2; /* EURO-ISDN Default */ -MODULE_PARM(protocol, "i"); +module_param(protocol, int, 0); MODULE_LICENSE("GPL"); // ---------------------------------------------------------------------- @@ -996,28 +996,18 @@ static struct pci_driver fcpci_driver = { static int __init hisax_fcpcipnp_init(void) { - int retval, pci_nr_found; + int retval; printk(KERN_INFO "hisax_fcpcipnp: Fritz!Card PCI/PCIv2/PnP ISDN driver v0.0.1\n"); retval = pci_register_driver(&fcpci_driver); - if (retval < 0) + if (retval) goto out; - pci_nr_found = retval; - retval = 0; - #ifdef __ISAPNP__ retval = pnp_register_driver(&fcpnp_driver); if (retval < 0) goto out_unregister_pci; #endif - -#if !defined(CONFIG_HOTPLUG) || defined(MODULE) - if (pci_nr_found + retval == 0) { - retval = -ENODEV; - goto out_unregister_isapnp; - } -#endif return 0; #if !defined(CONFIG_HOTPLUG) || defined(MODULE)