Subject: [PATCH] [MM] 6/10 pci_module_init() conversion

From: Henrik Kretzschmar <[email protected]>

pci_module_init() convertion in olympic.c
This one works on linus tree(2.6.18-rc6) too.
Signed-off-by: Henrik Kretzschmar <[email protected]>

---

--- linux-2.6.18-rc5-mm1/drivers/net/tokenring/olympic.c 2006-09-13 17:46:50.000000000 +0200
+++ linux/drivers/net/tokenring/olympic.c 2006-09-13 22:23:50.475145848 +0200
@@ -1771,7 +1771,7 @@

static int __init olympic_pci_init(void)
{
- return pci_module_init (&olympic_driver) ;
+ return pci_register_driver(&olympic_driver) ;
}

static void __exit olympic_pci_cleanup(void)



2006-09-04 13:32:50

by Alan

[permalink] [raw]
Subject: Re: [PATCH] [MM] 6/10 pci_module_init() conversion

Ar Llu, 2006-09-04 am 14:59 +0200, ysgrifennodd Henne:
> From: Henrik Kretzschmar <[email protected]>
>
> pci_module_init() convertion in olympic.c
> This one works on linus tree(2.6.18-rc6) too.
> Signed-off-by: Henrik Kretzschmar <[email protected]>
>
> ---
>
> --- linux-2.6.18-rc5-mm1/drivers/net/tokenring/olympic.c 2006-09-13 17:46:50.000000000 +0200
> +++ linux/drivers/net/tokenring/olympic.c 2006-09-13 22:23:50.475145848 +0200
> @@ -1771,7 +1771,7 @@
>
> static int __init olympic_pci_init(void)
> {
> - return pci_module_init (&olympic_driver) ;
> + return pci_register_driver(&olympic_driver) ;
> }

Acked-by: Alan Cox <[email protected]>