diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/pmu_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c index 3abf1b43..c23d83cf 100644 --- a/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/pmu_gk20a.c | |||
@@ -1227,7 +1227,7 @@ int pmu_mutex_acquire(struct pmu_gk20a *pmu, u32 id, u32 *token) | |||
1227 | u32 data, owner, max_retry; | 1227 | u32 data, owner, max_retry; |
1228 | 1228 | ||
1229 | if (!pmu->initialized) | 1229 | if (!pmu->initialized) |
1230 | return -EINVAL; | 1230 | return 0; |
1231 | 1231 | ||
1232 | BUG_ON(!token); | 1232 | BUG_ON(!token); |
1233 | BUG_ON(!PMU_MUTEX_ID_IS_VALID(id)); | 1233 | BUG_ON(!PMU_MUTEX_ID_IS_VALID(id)); |
@@ -1296,7 +1296,7 @@ int pmu_mutex_release(struct pmu_gk20a *pmu, u32 id, u32 *token) | |||
1296 | u32 owner, data; | 1296 | u32 owner, data; |
1297 | 1297 | ||
1298 | if (!pmu->initialized) | 1298 | if (!pmu->initialized) |
1299 | return -EINVAL; | 1299 | return 0; |
1300 | 1300 | ||
1301 | BUG_ON(!token); | 1301 | BUG_ON(!token); |
1302 | BUG_ON(!PMU_MUTEX_ID_IS_VALID(id)); | 1302 | BUG_ON(!PMU_MUTEX_ID_IS_VALID(id)); |