diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/sysfs.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/sysfs.c b/drivers/gpu/nvgpu/common/linux/sysfs.c index e0da4661..28ebb21d 100644 --- a/drivers/gpu/nvgpu/common/linux/sysfs.c +++ b/drivers/gpu/nvgpu/common/linux/sysfs.c | |||
@@ -388,7 +388,7 @@ static ssize_t is_railgated_show(struct device *dev, | |||
388 | bool is_railgated = 0; | 388 | bool is_railgated = 0; |
389 | 389 | ||
390 | if (platform->is_railgated) | 390 | if (platform->is_railgated) |
391 | is_railgated = platform->is_railgated(platform->g->dev); | 391 | is_railgated = platform->is_railgated(dev); |
392 | 392 | ||
393 | return snprintf(buf, PAGE_SIZE, "%s\n", is_railgated ? "yes" : "no"); | 393 | return snprintf(buf, PAGE_SIZE, "%s\n", is_railgated ? "yes" : "no"); |
394 | } | 394 | } |