fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / drivers / block / paride / on26.c
index 9f837d9..95ba256 100644 (file)
@@ -66,7 +66,7 @@ static int on26_read_regr( PIA *pi, int cont, int regr )
        case 3:
         case 4: w3(1); w3(1); w2(5); w4(r); w2(4);
                w3(0); w3(0); w2(0x24); a = r4(); w2(4);
-               w2(0x24); r4(); w2(4);
+               w2(0x24); (void)r4(); w2(4);
                 return a;
 
         }
@@ -306,12 +306,12 @@ static struct pi_protocol on26 = {
 
 static int __init on26_init(void)
 {
-       return pi_register(&on26)-1;
+       return paride_register(&on26);
 }
 
 static void __exit on26_exit(void)
 {
-       pi_unregister(&on26);
+       paride_unregister(&on26);
 }
 
 MODULE_LICENSE("GPL");