Skip to content

Commit

Permalink
[PATCH] arch: Replace pci_module_init() with pci_register_driver()
Browse files Browse the repository at this point in the history
Replace obsolete pci_module_init() with pci_register_driver().

Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Richard Knutsson authored and Greg Kroah-Hartman committed Jan 9, 2006
1 parent 065c635 commit d1d6da8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/i386/kernel/scx200.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion arch/mips/vr41xx/common/vrc4173.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d1d6da8

Please sign in to comment.