[PATCH 1/6] arch: Replace pci_module_init() with pci_register_driver()
From: Richard Knutsson (ricknu-0_at_student.ltu.se)
Date: 11/30/05
- Previous message: Matti Aarnio: "Re: x86-64 2.6.15-rc2-git5 fails to boot with 4GB memory"
- Next in thread: Richard Knutsson: "[PATCH 2/6] drivers/block: Replace pci_module_init() with pci_register_driver()"
- Reply: Richard Knutsson: "[PATCH 2/6] drivers/block: Replace pci_module_init() with pci_register_driver()"
- Reply: Richard Knutsson: "[PATCH 5/6] drivers/*rest*: Replace pci_module_init() with pci_register_driver()"
- Reply: Richard Knutsson: "[PATCH 3/6] drivers/net: Replace pci_module_init() with pci_register_driver()"
- Reply: Richard Knutsson: "[PATCH 6/6] pci.h: Delete Replace pci_module_init()"
- Reply: Richard Knutsson: "[PATCH 4/6] drivers/scsi: Replace pci_module_init() with pci_register_driver()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 30 Nov 2005 00:59:14 +0100 (MET) To: linux-kernel@vger.kernel.org
From: Richard Knutsson <ricknu-0@student.ltu.se>
Replace obsolete pci_module_init() with pci_register_driver().
Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
---
i386/kernel/scx200.c | 2 +-
mips/vr41xx/common/vrc4173.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff -Narup a/arch/i386/kernel/scx200.c b/arch/i386/kernel/scx200.c
--- a/arch/i386/kernel/scx200.c 2005-11-29 11:08:42.000000000 +0100
+++ b/arch/i386/kernel/scx200.c 2005-11-29 16:29:34.000000000 +0100
@@ -143,7 +143,7 @@ static int __init scx200_init(void)
{
printk(KERN_INFO NAME ": NatSemi SCx200 Driver\n");
- return pci_module_init(&scx200_pci_driver);
+ return pci_register_driver(&scx200_pci_driver);
}
static void __exit scx200_cleanup(void)
diff -Narup a/arch/mips/vr41xx/common/vrc4173.c b/arch/mips/vr41xx/common/vrc4173.c
--- a/arch/mips/vr41xx/common/vrc4173.c 2005-11-29 11:08:45.000000000 +0100
+++ b/arch/mips/vr41xx/common/vrc4173.c 2005-11-29 16:30:33.000000000 +0100
@@ -561,7 +561,7 @@ static int __devinit vrc4173_init(void)
{
int err;
- err = pci_module_init(&vrc4173_driver);
+ err = pci_register_driver(&vrc4173_driver);
if (err < 0)
return err;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Matti Aarnio: "Re: x86-64 2.6.15-rc2-git5 fails to boot with 4GB memory"
- Next in thread: Richard Knutsson: "[PATCH 2/6] drivers/block: Replace pci_module_init() with pci_register_driver()"
- Reply: Richard Knutsson: "[PATCH 2/6] drivers/block: Replace pci_module_init() with pci_register_driver()"
- Reply: Richard Knutsson: "[PATCH 5/6] drivers/*rest*: Replace pci_module_init() with pci_register_driver()"
- Reply: Richard Knutsson: "[PATCH 3/6] drivers/net: Replace pci_module_init() with pci_register_driver()"
- Reply: Richard Knutsson: "[PATCH 6/6] pci.h: Delete Replace pci_module_init()"
- Reply: Richard Knutsson: "[PATCH 4/6] drivers/scsi: Replace pci_module_init() with pci_register_driver()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
- [GIT PATCH 13/18] gamecon: handle errors from input_register_device()
... Also gc_remove shouldn't be marked __exit as it is also called from __init code. ...
return ERR_PTR;} -static void __exit gc_remove+static void gc_remove{int i; ... if (err)
{while ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the
body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - Re: x86_64: 32bit emulation problems
... > sorry, due to some mail sending/refusing problems, I had to resend to the ...
>> and then go through it with gdb and see what value err gets assigned. ... >>
I cannot see any kernel problem. ... send the line "unsubscribe linux-kernel" in
... (Linux-Kernel) - Re: bdflush/rpciod high CPU utilization, profile does not make sense
... That hints at what is causing the latencies on the server: ... err
= nfs_writepage_sync(ctx, inode, page, 0, ... send the line "unsubscribe linux-kernel"
in ... (Linux-Kernel) - [patch 1/8] [PATCH] sys_set_mempolicy() doesnt check if mode < 0
... A kernel BUG() is triggered by a call to set_mempolicywith a negative ... declared
as unsigned int or unsigned long. ... err = get_nodes; ... send the line
"unsubscribe linux-kernel" in ... (Linux-Kernel) - Re: 2.6.14 kernels and above copy_to_user stupidity with IRQ disabled check
... The user pages might be non resident and you can't have a page fault with interrupts
disabled. ... tons of bogus stack dump messages if the function is called from ...
return err; ... To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel)