pinctrl: don't print unavailable function groups
authorLudovic Desroches <ludovic.desroches@atmel.com>
Mon, 8 Jun 2015 15:16:37 +0000 (17:16 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 10 Jun 2015 08:44:05 +0000 (10:44 +0200)
commit9d7ebbbf2264c4ad3c8d50fcb84952126184a7ad
treef9b10b71062bfb95a9e82afab792dce5f6e33dcf
parent1bb6fad359b147645e47cf826bc20e6b5b4d66b2
pinctrl: don't print unavailable function groups

There is no reason to try to print groups associated to a function if
get_function_groups returns an error. Moreover, it can lead to a NULL
pointer dereference error.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinmux.c