arch: cxd56xx: gnss: Fix compile error
Fix a compile error caused by
Replace nxsem API when used as a lock with nxmutex API
@@ -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;
}
