diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c index 119030f9..127d0258 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a_sysfs.c | |||
@@ -284,7 +284,7 @@ static ssize_t railgate_enable_store(struct device *dev, | |||
284 | struct generic_pm_domain *genpd = dev_to_genpd(dev); | 284 | struct generic_pm_domain *genpd = dev_to_genpd(dev); |
285 | struct gk20a *g = get_gk20a(dev); | 285 | struct gk20a *g = get_gk20a(dev); |
286 | unsigned long railgate_enable = 0; | 286 | unsigned long railgate_enable = 0; |
287 | int err; | 287 | int err = 0; |
288 | 288 | ||
289 | if (kstrtoul(buf, 10, &railgate_enable) < 0) | 289 | if (kstrtoul(buf, 10, &railgate_enable) < 0) |
290 | return -EINVAL; | 290 | return -EINVAL; |
@@ -309,6 +309,9 @@ static ssize_t railgate_enable_store(struct device *dev, | |||
309 | err = platform->unrailgate(dev); | 309 | err = platform->unrailgate(dev); |
310 | mutex_unlock(&platform->railgate_lock); | 310 | mutex_unlock(&platform->railgate_lock); |
311 | } | 311 | } |
312 | if (err) | ||
313 | return err; | ||
314 | |||
312 | dev_info(dev, "railgate is %s.\n", platform->can_railgate ? | 315 | dev_info(dev, "railgate is %s.\n", platform->can_railgate ? |
313 | "enabled" : "disabled"); | 316 | "enabled" : "disabled"); |
314 | /* wake-up system to make railgating_enable effective immediately */ | 317 | /* wake-up system to make railgating_enable effective immediately */ |