Commit e0209017 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] fix ibmtr mapping bug

parent 5cc31d9b
...@@ -243,7 +243,7 @@ static void __devinit HWPrtChanID(void * pcid, short stride) ...@@ -243,7 +243,7 @@ static void __devinit HWPrtChanID(void * pcid, short stride)
static void __devinit find_turbo_adapters(int *iolist) { static void __devinit find_turbo_adapters(int *iolist) {
int ram_addr; int ram_addr;
int index=0; int index=0;
__u32 chanid; void *chanid;
int found_turbo=0; int found_turbo=0;
unsigned char *tchanid, ctemp; unsigned char *tchanid, ctemp;
int i,j; int i,j;
...@@ -300,7 +300,7 @@ static void __devinit find_turbo_adapters(int *iolist) { ...@@ -300,7 +300,7 @@ static void __devinit find_turbo_adapters(int *iolist) {
printk("ibmtr::find_turbo_adapters, ibmtr card found at" printk("ibmtr::find_turbo_adapters, ibmtr card found at"
" %x but not a Turbo model\n",ram_addr); " %x but not a Turbo model\n",ram_addr);
#endif #endif
iounmap(ram_addr) ; iounmap(ram_mapped) ;
} /* for */ } /* for */
for(i=0; i<IBMTR_MAX_ADAPTERS; i++) { for(i=0; i<IBMTR_MAX_ADAPTERS; i++) {
if(!turbo_io[i]) break; if(!turbo_io[i]) break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment