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>
This commit is contained in:
Родитель
e8b2a61875
Коммит
e55a09732b
|
@ -3281,7 +3281,7 @@ static int sci_probe_single(struct platform_device *dev,
|
|||
return ret;
|
||||
|
||||
sciport->gpios = mctrl_gpio_init(&sciport->port, 0);
|
||||
if (IS_ERR(sciport->gpios) && PTR_ERR(sciport->gpios) != -ENOSYS)
|
||||
if (IS_ERR(sciport->gpios))
|
||||
return PTR_ERR(sciport->gpios);
|
||||
|
||||
if (sciport->has_rtscts) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче