net: phy: mxl-gpy: fix version reporting
authorMichael Walle <michael@walle.cc>
Tue, 12 Jul 2022 13:15:51 +0000 (15:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Dec 2022 10:37:29 +0000 (11:37 +0100)
commitb08412a9cf265bbe616262566f34533ab75d0d34
tree77be0ffd64b6da172f9b7109341c6d4282c47624
parentdec5abd91abc700dcb869f8056bc1f48d045ff97
net: phy: mxl-gpy: fix version reporting

[ Upstream commit fc3dd0367e610ae20ebbce6c38c7b86c3a2cc07f ]

The commit 09ce6b20103b ("net: phy: mxl-gpy: add temperature sensor")
will overwrite the return value and the reported version will be wrong.
Fix it.

Fixes: 09ce6b20103b ("net: phy: mxl-gpy: add temperature sensor")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 5f4d487d01ff ("net: phy: mxl-gpy: add MDINT workaround")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/phy/mxl-gpy.c