arch: cxd56xx: gnss: Fix compile error

Fix a compile error caused by
d1d4633 Replace nxsem API when used as a lock with nxmutex API
This commit is contained in:
SPRESENSE 2022-10-19 17:30:59 +09:00 committed by Alin Jerpelea
parent ec93385dfa
commit c48feac0e9

View File

@ -1533,7 +1533,7 @@ static int cxd56_gnss_set_signal(struct file *filep, unsigned long arg)
success: success:
err: err:
nxsem_post(&priv->devsem); nxmutex_unlock(&priv->devlock);
#endif /* CONFIG_CXD56_GNSS_NSIGNALRECEIVERS != 0 */ #endif /* CONFIG_CXD56_GNSS_NSIGNALRECEIVERS != 0 */
return ret; return ret;
@ -2669,7 +2669,7 @@ err1:
nxsem_destroy(&priv->syncsem); nxsem_destroy(&priv->syncsem);
err0: err0:
success: success:
nxsem_post(&priv->devsem); nxmutex_unlock(&priv->devlock);
return ret; return ret;
} }
@ -2717,7 +2717,7 @@ static int cxd56_gnss_close(struct file *filep)
} }
errout: errout:
nxsem_post(&priv->devsem); nxmutex_unlock(&priv->devlock);
return ret; return ret;
} }
@ -3018,7 +3018,7 @@ static int cxd56_gnss_register(const char *devpath)
ret = nxmutex_init(&priv->devlock); ret = nxmutex_init(&priv->devlock);
if (ret < 0) if (ret < 0)
{ {
gnsserr("Failed to initialize gnss devsem!\n"); gnsserr("Failed to initialize gnss devlock!\n");
goto err0; goto err0;
} }