]> err.no Git - linux-2.6/commitdiff
Fix compile of tmscsim SCSI driver
authorLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 5 May 2007 21:23:40 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 5 May 2007 21:23:40 +0000 (14:23 -0700)
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>
drivers/scsi/tmscsim.c

index a583e89238fcf7297b06f6a36b59692badd86ef8..3158949ffa62206f98c0437462b83a3142f3f215 100644 (file)
@@ -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)