commit | caef3e0b657d091a540232e07e5e5b4648110a52 | [log] [tgz] |
---|---|---|
author | Antoine Tenart <antoine.tenart@free-electrons.com> | Mon Sep 18 10:04:20 2017 +0200 |
committer | Kishon Vijay Abraham I <kishon@ti.com> | Tue Sep 26 17:02:48 2017 +0530 |
tree | 8f4686bbfd748ac082edc984782883c8f132182b | |
parent | 554a56fc83f679c73b4f851a330045d0ec7ec1a5 [diff] |
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>