2007-02-14 00:40:46

by Richard Knutsson

[permalink] [raw]
Subject: [PATCH] net/wan/pc300too.c: pci_module_init to pci_register_driver

Convert pci_module_init() to pci_register_driver().

Signed-off-by: Richard Knutsson <[email protected]>
---
Compile-tested with "allyes", "allmod" & "allno" on i386


diff --git a/drivers/net/wan/pc300too.c b/drivers/net/wan/pc300too.c
index bc156b5..aff05db 100644
--- a/drivers/net/wan/pc300too.c
+++ b/drivers/net/wan/pc300too.c
@@ -542,7 +542,7 @@ static int __init pc300_init_module(void)

CLOCK_BASE = use_crystal_clock ? 24576000 : pci_clock_freq;

- return pci_module_init(&pc300_pci_driver);
+ return pci_register_driver(&pc300_pci_driver);
}



2007-02-16 22:00:10

by Krzysztof Halasa

[permalink] [raw]
Subject: Re: [PATCH] net/wan/pc300too.c: pci_module_init to pci_register_driver

Richard Knutsson <[email protected]> writes:

> Convert pci_module_init() to pci_register_driver().
>
> Signed-off-by: Richard Knutsson <[email protected]>

Ack.

> --- a/drivers/net/wan/pc300too.c
> +++ b/drivers/net/wan/pc300too.c
> @@ -542,7 +542,7 @@ static int __init pc300_init_module(void)
>
> CLOCK_BASE = use_crystal_clock ? 24576000 : pci_clock_freq;
>
> - return pci_module_init(&pc300_pci_driver);
> + return pci_register_driver(&pc300_pci_driver);
> }
>
>
>

--
Krzysztof Halasa

2007-02-17 20:27:15

by Jeff Garzik

[permalink] [raw]
Subject: Re: [PATCH] net/wan/pc300too.c: pci_module_init to pci_register_driver

Richard Knutsson wrote:
> Convert pci_module_init() to pci_register_driver().
>
> Signed-off-by: Richard Knutsson <[email protected]>
> ---
> Compile-tested with "allyes", "allmod" & "allno" on i386

applied