pinctrl: apple: handle regmap_read errors
authorJoey Gouly <joey.gouly@arm.com>
Sun, 21 Nov 2021 16:56:36 +0000 (16:56 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Nov 2021 23:55:14 +0000 (00:55 +0100)
commit3605f104111e4adeac71edc89d867ec56147786d
tree89f8af651e7f59578dea60554b61e94ec2271a99
parent7c06f080ddee516499adf75fe934ee06c0f6116c
pinctrl: apple: handle regmap_read errors

Explicitly return 0 if the regmap_read fails.
Also change a uint32_t to a u32.

Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Suggested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20211121165642.27883-6-joey.gouly@arm.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-apple-gpio.c