]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[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)
commitb85cdd490ac52ee039636f809b9b98b1300fcf3d
tree0c35fa87f07eda71128ecfaaf62f37c613918adf
parent562aa1d4c6a874373f9a48ac184f662fbbb06a04
[SPARC]: Fix bus handling in build_device_resources().

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>
arch/sparc/kernel/of_device.c
arch/sparc64/kernel/of_device.c