From: David McKay Date: Tue, 21 Feb 2012 21:24:57 +0000 (+0000) Subject: netdev/phy/icplus: Correct broken phy_init code X-Git-Tag: v3.3-rc6~36^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8e3995af4c7da7707b1710332a31f66e06b74dc;p=pandora-kernel.git netdev/phy/icplus: Correct broken phy_init code The code for ip1001_config_init() was totally broken if you were not using RGMII. Instead of returning an error code or zero it actually returned the value in the IP1001_SPEC_CTRL_STATUS_2 register. It was also trying to set the IP1001_APS_ON bit , but never actually wrote back the register. The error checking was also incorrect in both this function and the reset function, so this patch fixes that up in a consistent fashion. Signed-off-by: David McKay Signed-off-by: Giuseppe Cavallaro Signed-off-by: David S. Miller --- Reading git-diff-tree failed