git: bc734377d9dd - main - qoriq_gpio_pin_setflags: Propagate error from qoriq_gpio_pin_configure.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 18 Apr 2022 19:29:58 UTC
The branch main has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=bc734377d9ddc1a405277d6afa8c0147e02194c6

commit bc734377d9ddc1a405277d6afa8c0147e02194c6
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-04-18 19:28:09 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-04-18 19:28:09 +0000

    qoriq_gpio_pin_setflags: Propagate error from qoriq_gpio_pin_configure.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D34854
---
 sys/dev/gpio/qoriq_gpio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/gpio/qoriq_gpio.c b/sys/dev/gpio/qoriq_gpio.c
index 8300a45aa249..3853f0f4bcb5 100644
--- a/sys/dev/gpio/qoriq_gpio.c
+++ b/sys/dev/gpio/qoriq_gpio.c
@@ -153,7 +153,7 @@ qoriq_gpio_pin_setflags(device_t dev, uint32_t pin, uint32_t flags)
 	GPIO_LOCK(sc);
 	ret = qoriq_gpio_pin_configure(dev, pin, flags);
 	GPIO_UNLOCK(sc);
-	return (0);
+	return (ret);
 }
 
 static int