Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29827b02 authored by Roel Kluin's avatar Roel Kluin Committed by Benjamin Herrenschmidt
Browse files

powerpc/85xx: Wrong variable returned on error



The wrong variable was returned in the case of an error.

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Cc: Kumar Gala <galak@kernel.crashing.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 5c916a29
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);