summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/os/linux/scale.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/scale.c')
-rw-r--r--drivers/gpu/nvgpu/os/linux/scale.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/scale.c b/drivers/gpu/nvgpu/os/linux/scale.c
index ef7996e6..388e168d 100644
--- a/drivers/gpu/nvgpu/os/linux/scale.c
+++ b/drivers/gpu/nvgpu/os/linux/scale.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * gk20a clock scaling profile 2 * gk20a clock scaling profile
3 * 3 *
4 * Copyright (c) 2013-2018, NVIDIA Corporation. All rights reserved. 4 * Copyright (c) 2013-2020, NVIDIA Corporation. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -339,6 +339,8 @@ void gk20a_scale_init(struct device *dev)
339 return; 339 return;
340 340
341 profile = nvgpu_kzalloc(g, sizeof(*profile)); 341 profile = nvgpu_kzalloc(g, sizeof(*profile));
342 if (!profile)
343 return;
342 344
343 profile->dev = dev; 345 profile->dev = dev;
344 profile->dev_stat.busy = false; 346 profile->dev_stat.busy = false;