diff options
author | David Miller <davem@davemloft.net> | 2007-03-07 18:47:54 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-03-13 11:26:47 -0700 |
commit | 46bda9eca2e14448ec85272259fb7d4aa5ac32b8 (patch) | |
tree | 40351c7e334c8c3b603d7ea5745bdf60f9b8987e /include | |
parent | 7644d8b697ad46a666be8d254e4f89fd6a4b5b3e (diff) |
Fix sparc64 device register probing
[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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions