From: David Daney Date: Thu, 28 Oct 2010 01:03:47 +0000 (-0700) Subject: of/mdio: Fix some endianness problems. X-Git-Tag: v2.6.38-rc1~431^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=194588604765ac803f98fb9d19a36f6b835f4620;p=pandora-kernel.git of/mdio: Fix some endianness problems. In of_mdiobus_register(), the __be32 *addr variable is dereferenced. This will not work on little-endian targets. Also since it is unsigned, checking for less than zero is redundant. Fix these two issues. Signed-off-by: David Daney [grant.likely@secretlab.ca: removed goto] Signed-off-by: Grant Likely --- Reading git-diff-tree failed