[SPARC]: Fix bus handling in build_device_resources().
authorDavid S. Miller <davem@sunset.davemloft.net>
Thu, 1 Mar 2007 07:20:12 +0000 (23:20 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 2 Mar 2007 23:22:49 +0000 (15:22 -0800)
We mistakedly modify 'bus' in the innermost loop.  What
should happen is that at each register index iteration,
we start with the same 'bus'.

So preserve it's value at the top level, and use a loop
local variable 'dbus' for iteration.

This bug causes registers other than the first to be
decoded improperly.

Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found