pinctrl: intel: merrifield: Add missed check in mrfld_config_set()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 24 Jan 2017 15:28:22 +0000 (17:28 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 30 Jan 2017 08:15:10 +0000 (09:15 +0100)
commit19b26d92dfb70f56440c187a20c49102ab648b97
treeac8e7b467d2a95234419611e0bf8dc9291e04c47
parent2154d94b40ea2a5de05245521371d0461bb0d669
pinctrl: intel: merrifield: Add missed check in mrfld_config_set()

Not every pin can be configured. Add missed check to prevent access
violation.

Fixes: 4e80c8f50574 ("pinctrl: intel: Add Intel Merrifield pin controller support")
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-merrifield.c