serial: 8250: Don't check for mctrl_gpio_init() returning -ENOSYS
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Fri, 2 Aug 2019 10:04:11 +0000 (10:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Sep 2019 10:43:50 +0000 (12:43 +0200)
commit3d7514da039186729f823db789193002730151c7
tree9715e09d6289775546669af9987b81562a933499
parente55a09732be9b4e13cf3b5d2b9bb41b3e60e5ea6
serial: 8250: 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-4-frieder.schrempf@kontron.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c