Skip to content

Commit

Permalink
Fix compile of tmscsim SCSI driver
Browse files Browse the repository at this point in the history
It still used the long-deprecated "pci_module_init()" interface, rather
than the proper "pci_register_driver()" one.

[ I don't have the hardware, and I doubt many do, but the fix is
  trivial and obvious, and can't be worse than not compiling ]

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Linus Torvalds committed May 5, 2007
1 parent 989485c commit 886a076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/tmscsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -2680,7 +2680,7 @@ static int __init dc390_module_init(void)
printk (KERN_INFO "DC390: Using safe settings.\n");
}

return pci_module_init(&dc390_driver);
return pci_register_driver(&dc390_driver);
}

static void __exit dc390_module_exit(void)
Expand Down

0 comments on commit 886a076

Please sign in to comment.