serial: sh-sci: Don't check for mctrl_gpio_init() returning -ENOSYS
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Fri, 2 Aug 2019 10:04:10 +0000 (10:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:50 +0000 (12:43 +0200)
commite55a09732be9b4e13cf3b5d2b9bb41b3e60e5ea6
tree88354aaa190b6d498bd624f46fa0f80f4dec12eb
parente8b2a6187544e79fbc4863fe5cc746de8bba07ff
serial: sh-sci: Don't check for mctrl_gpio_init() returning -ENOSYS

Now that the mctrl_gpio code returns NULL instead of ERR_PTR(-ENOSYS)
if CONFIG_GPIOLIB is disabled, we can safely remove this check.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Acked-by: Uwe Kleine-Knig <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20190802100349.8659-3-frieder.schrempf@kontron.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c