From: David S. Miller Date: Thu, 1 Mar 2007 07:20:12 +0000 (-0800) Subject: [SPARC]: Fix bus handling in build_device_resources(). X-Git-Tag: v2.6.21-rc3~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b85cdd490ac52ee039636f809b9b98b1300fcf3d;p=pandora-kernel.git [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 --- Reading git-diff-tree failed