* [PATCH -mm] drivers/net/vioc/vioc_driver.c: Replace pci_module_init with pci_register_driver
@ 2007-02-24 10:46 Richard Knutsson
0 siblings, 0 replies; only message in thread
From: Richard Knutsson @ 2007-02-24 10:46 UTC (permalink / raw)
To: driver-support; +Cc: linux-kernel, Andrew Morton, Richard Knutsson
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-24 10:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-24 10:46 [PATCH -mm] drivers/net/vioc/vioc_driver.c: Replace pci_module_init with pci_register_driver Richard Knutsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®