From c48feac0e90c0b1ca1503c769b353dd2a7759161 Mon Sep 17 00:00:00 2001 From: SPRESENSE <41312067+SPRESENSE@users.noreply.github.com> Date: Wed, 19 Oct 2022 17:30:59 +0900 Subject: [PATCH] arch: cxd56xx: gnss: Fix compile error Fix a compile error caused by d1d4633 Replace nxsem API when used as a lock with nxmutex API --- arch/arm/src/cxd56xx/cxd56_gnss.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/src/cxd56xx/cxd56_gnss.c b/arch/arm/src/cxd56xx/cxd56_gnss.c index b7868061b0..f7798435a0 100644 --- a/arch/arm/src/cxd56xx/cxd56_gnss.c +++ b/arch/arm/src/cxd56xx/cxd56_gnss.c @@ -1533,7 +1533,7 @@ static int cxd56_gnss_set_signal(struct file *filep, unsigned long arg) success: err: - nxsem_post(&priv->devsem); + nxmutex_unlock(&priv->devlock); #endif /* CONFIG_CXD56_GNSS_NSIGNALRECEIVERS != 0 */ return ret; @@ -2669,7 +2669,7 @@ err1: nxsem_destroy(&priv->syncsem); err0: success: - nxsem_post(&priv->devsem); + nxmutex_unlock(&priv->devlock); return ret; } @@ -2717,7 +2717,7 @@ static int cxd56_gnss_close(struct file *filep) } errout: - nxsem_post(&priv->devsem); + nxmutex_unlock(&priv->devlock); return ret; } @@ -3018,7 +3018,7 @@ static int cxd56_gnss_register(const char *devpath) ret = nxmutex_init(&priv->devlock); if (ret < 0) { - gnsserr("Failed to initialize gnss devsem!\n"); + gnsserr("Failed to initialize gnss devlock!\n"); goto err0; }