* [PATCH] drivers/mfd/sm501.c: Replace pci_module_init with pci_register_driver
@ 2007-02-24 10:46 Richard Knutsson
2007-02-24 15:42 ` Ben Dooks
0 siblings, 1 reply; 2+ messages in thread
From: Richard Knutsson @ 2007-02-24 10:46 UTC (permalink / raw)
To: Ben Dooks
Cc: Linus Torvalds, Vincent Sanders, linux-kernel, Andrew Morton,
Richard Knutsson
Replace pci_module_init with pci_register_driver
Signed-off-by: Richard Knutson <ricknu-0@student.ltu.se>
---
Compile-tested with "allyes", "allmod" & "allno" on i386
diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c
index 5c5a1e2..c707c8e 100644
--- a/drivers/mfd/sm501.c
+++ b/drivers/mfd/sm501.c
@@ -1131,7 +1131,7 @@ static struct platform_driver sm501_plat_drv = {
static int __init sm501_base_init(void)
{
platform_driver_register(&sm501_plat_drv);
- return pci_module_init(&sm501_pci_drv);
+ return pci_register_driver(&sm501_pci_drv);
}
static void __exit sm501_base_exit(void)
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] drivers/mfd/sm501.c: Replace pci_module_init with pci_register_driver
2007-02-24 10:46 [PATCH] drivers/mfd/sm501.c: Replace pci_module_init with pci_register_driver Richard Knutsson
@ 2007-02-24 15:42 ` Ben Dooks
0 siblings, 0 replies; 2+ messages in thread
From: Ben Dooks @ 2007-02-24 15:42 UTC (permalink / raw)
To: Richard Knutsson
Cc: Ben Dooks, Linus Torvalds, Vincent Sanders, linux-kernel,
Andrew Morton
On Sat, Feb 24, 2007 at 11:46:06AM +0100, Richard Knutsson wrote:
> Replace pci_module_init with pci_register_driver
Thankyou for spotting this.
> Signed-off-by: Richard Knutson <ricknu-0@student.ltu.se>
Acked-by: Ben Dooks <ben-linux@fluff.org>
> ---
> Compile-tested with "allyes", "allmod" & "allno" on i386
>
> diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c
> index 5c5a1e2..c707c8e 100644
> --- a/drivers/mfd/sm501.c
> +++ b/drivers/mfd/sm501.c
> @@ -1131,7 +1131,7 @@ static struct platform_driver sm501_plat_drv = {
> static int __init sm501_base_init(void)
> {
> platform_driver_register(&sm501_plat_drv);
> - return pci_module_init(&sm501_pci_drv);
> + return pci_register_driver(&sm501_pci_drv);
> }
>
> static void __exit sm501_base_exit(void)
--
--
Ben
Q: What's a light-year?
A: One-third less calories than a regular year.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-24 15:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-24 10:46 [PATCH] drivers/mfd/sm501.c: Replace pci_module_init with pci_register_driver Richard Knutsson
2007-02-24 15:42 ` Ben Dooks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox