commit | b85cdd490ac52ee039636f809b9b98b1300fcf3d | [log] [tgz] |
---|---|---|
author | David S. Miller <davem@sunset.davemloft.net> | Wed Feb 28 23:20:12 2007 -0800 |
committer | David S. Miller <davem@sunset.davemloft.net> | Fri Mar 02 15:22:49 2007 -0800 |
tree | 0c35fa87f07eda71128ecfaaf62f37c613918adf | |
parent | 562aa1d4c6a874373f9a48ac184f662fbbb06a04 [diff] |
[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>