phy: mvebu-cp110-comphy: fix mux error check
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Mon, 18 Sep 2017 08:04:20 +0000 (10:04 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Tue, 26 Sep 2017 11:32:48 +0000 (17:02 +0530)
commitcaef3e0b657d091a540232e07e5e5b4648110a52
tree8f4686bbfd748ac082edc984782883c8f132182b
parent554a56fc83f679c73b4f851a330045d0ec7ec1a5
phy: mvebu-cp110-comphy: fix mux error check

The mux value is retrieved from the mvebu_comphy_get_mux() function
which returns an int. In mvebu_comphy_power_on() this int is stored to a
u32 and a check is made to ensure it's not negative. Which is wrong.
This fixes it.

Fixes: d0438bd6aa09 ("phy: add the mvebu cp110 comphy driver")
Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/marvell/phy-mvebu-cp110-comphy.c