]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: at91: initialize config parameter to 0
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 7 Dec 2013 13:08:53 +0000 (14:08 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 12 Dec 2013 14:43:36 +0000 (15:43 +0100)
commite5b7f127ad9b2322330607815c7b1bbea0f5868d
tree2884f2c714b198c0533984615d99846785029ff0
parent8dd9a92374e38d419ea2b8b4fc8fe80197992be3
pinctrl: at91: initialize config parameter to 0

When passing a not initialized config parameter, at91_pinconf_get() would return
a bogus value. Fix that by initializing it to zero before using it.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c