PATCH: fix ibmtr mapping bug

PATCH: fix ibmtr mapping bug

Post by Alan Co » Wed, 09 Oct 2002 22:30:11



diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.2.5.41/drivers/net/tokenring/ibmtr.c linux.2.5.41-ac1/drivers/net/tokenring/ibmtr.c
--- linux.2.5.41/drivers/net/tokenring/ibmtr.c  2002-07-20 20:11:25.000000000 +0100

 static void __devinit find_turbo_adapters(int *iolist) {
        int ram_addr;
        int index=0;
-       __u32 chanid;
+       void *chanid;
        int found_turbo=0;
        unsigned char *tchanid, ctemp;

                printk("ibmtr::find_turbo_adapters, ibmtr card found at"
                        " %x but not a Turbo model\n",ram_addr);
 #endif
-       iounmap(ram_addr) ;    
+       iounmap(ram_mapped) ;  
        } /* for */
        for(i=0; i<IBMTR_MAX_ADAPTERS; i++) {
                if(!turbo_io[i]) break;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/