diff options
author | Phil Edworthy <phil.edworthy@renesas.com> | 2018-11-23 11:54:27 +0100 |
---|---|---|
committer | Geert Uytterhoeven <geert+renesas@glider.be> | 2018-12-04 10:33:08 +0100 |
commit | 8deaaa46d2de91e399076eb962b171734ca3092d (patch) | |
tree | 94f671de4b0ed3c04b2381185e75ca7c31980ff9 /drivers/pinctrl/pinctrl-rzn1.c | |
parent | pinctrl: Add RZ/A2 pin and gpio controller (diff) | |
download | linux-8deaaa46d2de91e399076eb962b171734ca3092d.tar.xz linux-8deaaa46d2de91e399076eb962b171734ca3092d.zip |
pinctrl: rzn1: Fix check for used MDIO bus
This fixes the check for unused mdio bus setting and the following static
checker warning:
drivers/pinctrl/pinctrl-rzn1.c:198 rzn1_pinctrl_mdio_select()
warn: always true condition '(ipctl->mdio_func[mdio] >= 0) => (0-u32max >= 0)'
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Diffstat (limited to '')
-rw-r--r-- | drivers/pinctrl/pinctrl-rzn1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-rzn1.c b/drivers/pinctrl/pinctrl-rzn1.c index 57886dcff53d..a04235e3bec4 100644 --- a/drivers/pinctrl/pinctrl-rzn1.c +++ b/drivers/pinctrl/pinctrl-rzn1.c @@ -112,7 +112,7 @@ struct rzn1_pinctrl { struct rzn1_pinctrl_regs __iomem *lev2; u32 lev1_protect_phys; u32 lev2_protect_phys; - u32 mdio_func[2]; + int mdio_func[2]; struct rzn1_pin_group *groups; unsigned int ngroups; |