Replace pci_module_init with pci_register_driver

Signed-off-by: Richard Knutson <[EMAIL PROTECTED]>
---
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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to