Commit 8a959813 authored by Jochen Friedrich's avatar Jochen Friedrich Committed by Stephen Hemminger

[tokenring] fix breakage in proteon, skisa

this one fixes both drivers. They have been broken since the
reorganization in June. Unfortunately, my major build platform (alpha) had
some issues with later 2.5.X kernels (cache problems causing all kind of
funny behaviour), so i waited until these problems had been resolved by
the alpha gurus :-/...

In the mean time i also upgraded pine. I hope the patch corruption issue
is resolved by now.
parent 7f13c9f8
...@@ -410,7 +410,7 @@ int init_module(void) ...@@ -410,7 +410,7 @@ int init_module(void)
} }
} else { } else {
for(i = 0; num < ISATR_MAX_ADAPTERS && portlist[i]; i++) { for(i = 0; num < ISATR_MAX_ADAPTERS && portlist[i]; i++) {
if (setup_card(portlist[i], irq[i], dma[i])) if (setup_card(portlist[i], irq[num], dma[num]) == 0)
num++; num++;
} }
} }
......
...@@ -423,7 +423,7 @@ int init_module(void) ...@@ -423,7 +423,7 @@ int init_module(void)
} }
} else { } else {
for(i = 0; num < ISATR_MAX_ADAPTERS && portlist[i]; i++) { for(i = 0; num < ISATR_MAX_ADAPTERS && portlist[i]; i++) {
if (setup_card(portlist[i], irq[i], dma[i])) if (setup_card(portlist[i], irq[num], dma[num]) == 0)
num++; num++;
} }
} }
......
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