LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 2.6.20-rc7 1/2] atl1: get rid of pci_module_init
@ 2007-02-01 1:10 Jay Cliburn
2007-02-02 13:28 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Jay Cliburn @ 2007-02-01 1:10 UTC (permalink / raw)
To: jeff; +Cc: csnook, netdev, linux-kernel, atl1-devel, alan
From: Jay Cliburn <jacliburn@bellsouth.net>
pci_module_init is deprecated. Use pci_register_driver instead.
Discovered by and modification suggested by Alan Cox.
Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net>
---
drivers/net/atl1/atl1_main.c | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/drivers/net/atl1/atl1_main.c b/drivers/net/atl1/atl1_main.c
index 0afa9c1..793c43b 100644
--- a/drivers/net/atl1/atl1_main.c
+++ b/drivers/net/atl1/atl1_main.c
@@ -2461,12 +2461,9 @@ static void __exit atl1_exit_module(void)
*/
static int __init atl1_init_module(void)
{
- int ret;
printk(KERN_INFO "%s - version %s\n", atl1_driver_string, DRIVER_VERSION);
printk(KERN_INFO "%s\n", atl1_copyright);
- ret = pci_module_init(&atl1_driver);
-
- return ret;
+ return pci_register_driver(&atl1_driver);
}
module_init(atl1_init_module);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.6.20-rc7 1/2] atl1: get rid of pci_module_init
2007-02-01 1:10 [PATCH 2.6.20-rc7 1/2] atl1: get rid of pci_module_init Jay Cliburn
@ 2007-02-02 13:28 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-02-02 13:28 UTC (permalink / raw)
To: Jay Cliburn; +Cc: csnook, netdev, linux-kernel, atl1-devel, alan
Jay Cliburn wrote:
> From: Jay Cliburn <jacliburn@bellsouth.net>
>
> pci_module_init is deprecated. Use pci_register_driver instead.
> Discovered by and modification suggested by Alan Cox.
>
> Signed-off-by: Jay Cliburn <jacliburn@bellsouth.net>
applied 1-2 to #atl1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-02 13:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-01 1:10 [PATCH 2.6.20-rc7 1/2] atl1: get rid of pci_module_init Jay Cliburn
2007-02-02 13:28 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).