of/mdio: Fix some endianness problems.
authorDavid Daney <ddaney@caviumnetworks.com>
Thu, 28 Oct 2010 01:03:47 +0000 (18:03 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 24 Dec 2010 08:25:54 +0000 (01:25 -0700)
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 <ddaney@caviumnetworks.com>
[grant.likely@secretlab.ca: removed goto]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

No differences found