summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-12-17 15:45:15 +0100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2009-12-18 04:53:37 +0100
commit29827b02dc5d1eed8a1ff8b34cd1926966a87e89 (patch)
treeb6601200d4347be34d80079101656bd8cdba7b91 /arch
parentpowerpc/iseries: Convert to proc_fops (diff)
downloadlinux-29827b02dc5d1eed8a1ff8b34cd1926966a87e89.tar.xz
linux-29827b02dc5d1eed8a1ff8b34cd1926966a87e89.zip
powerpc/85xx: Wrong variable returned on error
The wrong variable was returned in the case of an error. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Cc: Kumar Gala <galak@kernel.crashing.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/85xx/mpc85xx_mds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
index c5028a2e5a58..21f61b8c445b 100644
--- a/arch/powerpc/platforms/85xx/mpc85xx_mds.c
+++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c
@@ -86,7 +86,7 @@ static int mpc8568_fixup_125_clock(struct phy_device *phydev)
scr = phy_read(phydev, MV88E1111_SCR);
if (scr < 0)
- return err;
+ return scr;
err = phy_write(phydev, MV88E1111_SCR, scr | 0x0008);