ltpc_setup patch for 2.3.99-pre4-3

From: Tim Waugh (twaugh@redhat.com)
Date: Mon Apr 03 2000 - 09:56:47 EST


It looks to me like ltpc_setup is broken. Here is a patch that hopefully
fixes it (so that you can specify a DMA channel to use), and also makes it
return 0 on error.

Tim.
*/

Index: drivers/net/appletalk/ltpc.c
===================================================================
RCS file: /usr/local/src/cvsroot/linux/drivers/net/appletalk/ltpc.c,v
retrieving revision 1.1.1.1
diff -d -u -r1.1.1.1 ltpc.c
--- drivers/net/appletalk/ltpc.c 2000/03/06 09:55:28 1.1.1.1
+++ drivers/net/appletalk/ltpc.c 2000/04/03 14:54:26
@@ -1253,17 +1253,15 @@
                         /* usage message */
                         printk (KERN_ERR
                                 "ltpc: usage: ltpc=auto|iobase[,irq[,dma]]\n");
+ return 0;
                 }
- return 1;
         } else {
                 io = ints[1];
                 if (ints[0] > 1) {
                         irq = ints[2];
- return 1;
                 }
                 if (ints[0] > 2) {
                         dma = ints[3];
- return 1;
                 }
                 /* ignore any other paramters */
         }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Apr 07 2000 - 21:00:10 EST