Messages in this thread Patch in this message | | | Date | Sat, 24 Feb 2007 11:46:37 +0100 (MET) | From | Richard Knutsson <> | Subject | [PATCH -mm] drivers/net/vioc/vioc_driver.c: Replace pci_module_init with pci_register_driver |
| |
Replace pci_module_init with pci_register_driver
Signed-off-by: Richard Knutson <ricknu-0@student.ltu.se> --- Not compile-tested (but should be correct!)
--- a/drivers/net/vioc/vioc_driver.c 2007-02-24 10:04:03.000000000 +0100 +++ b/drivers/net/vioc/vioc_driver.c 2007-02-24 10:05:01.000000000 +0100 @@ -841,9 +841,9 @@ static int __init vioc_module_init(void) vioc_irq_init(); spp_init(); - ret = pci_module_init(&vioc_driver); + ret = pci_register_driver(&vioc_driver); if (ret) { - printk(KERN_ERR "%s: pci_module_init() -> %d\n", __FUNCTION__, + printk(KERN_ERR "%s: pci_register_driver() -> %d\n", __FUNCTION__, ret); vioc_irq_exit(); return ret; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |