summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorFlorian Vaussard <florian.vaussard@epfl.ch>2014-02-05 10:51:22 +0400
committerLinus Walleij <linus.walleij@linaro.org>2014-02-06 16:48:17 +0400
commite7f2a444891cb39f11d5429467d0fd7e011fe7fe (patch)
tree502ef3bb1342dc7b23553684b12103188c367639 /arch
parent7b320cb1ed2dbd2c5f2a778197baf76fd6bf545a (diff)
downloadlinux-e7f2a444891cb39f11d5429467d0fd7e011fe7fe.tar.xz
pinctrl: do not init debugfs entries for unimplemented functionalities
Commit c420619 "pinctrl: pinconf: remove checks on ops->pin_config_get" removed the check on (ops != NULL) when performing pinconf_pins_show() or pinconf_groups_show(). As these entries are always enabled, even if pinconf is not supported, reading will result in an oops due to NULL ops. Instead of checking for ops, remove the corresponding debugfs entries if pinconf and/or pinmux are not implemented. Tested on OMAP3 (pinctrl-single). Cc: stable@vger.kernel.org Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions