pinctrl: mediatek: mt7622: align error handling of mtk_hw_get_value call
authorSean Wang <sean.wang@mediatek.com>
Tue, 9 Jan 2018 16:28:25 +0000 (00:28 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 11 Jan 2018 09:43:24 +0000 (10:43 +0100)
commit8b3d9cd48d15f34328ec69ecff5ca860e7068e36
tree1f4b91fc5beb24a6feeafce5ab889c0fccd37465
parent181cdac02c51a77f9ae497be624edb99056a0a10
pinctrl: mediatek: mt7622: align error handling of mtk_hw_get_value call

Make consistent error handling of all mtk_hw_get_value occurrences using
propagating error code from the internal instead of creating a new one.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt7622.c