diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2016-04-12 08:30:18 -0400 |
---|---|---|
committer | Deepak Nibade <dnibade@nvidia.com> | 2016-12-27 04:52:11 -0500 |
commit | 545dd0e3707c317a8b47dc0660b74d81f74bd416 (patch) | |
tree | 37c74e906e8f8bedb2f61ea81a411f49bb4e50ae /drivers/gpu/nvgpu/gp10b | |
parent | 9acab4c9759c23cc355839187f7c07c48b4dc017 (diff) |
gpu: nvgpu: return from scale_init() if no profile
In gp10b_tegra_scale_init(), return immediately
if CONFIG_GK20A_DEVFREQ is disabled and
profile is NULL
Change-Id: I08e15afdc72bef62a4fb43f30b74cebf8a4b0d68
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/1125444
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b')
-rw-r--r-- | drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c index 7d8312fc..25673873 100644 --- a/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c +++ b/drivers/gpu/nvgpu/gp10b/platform_gp10b_tegra.c | |||
@@ -93,6 +93,9 @@ static void gp10b_tegra_scale_init(struct device *dev) | |||
93 | struct gk20a_scale_profile *profile = platform->g->scale_profile; | 93 | struct gk20a_scale_profile *profile = platform->g->scale_profile; |
94 | struct tegra_bwmgr_client *bwmgr_handle; | 94 | struct tegra_bwmgr_client *bwmgr_handle; |
95 | 95 | ||
96 | if (!profile) | ||
97 | return; | ||
98 | |||
96 | bwmgr_handle = tegra_bwmgr_register(TEGRA_BWMGR_CLIENT_GPU); | 99 | bwmgr_handle = tegra_bwmgr_register(TEGRA_BWMGR_CLIENT_GPU); |
97 | if (!bwmgr_handle) | 100 | if (!bwmgr_handle) |
98 | return; | 101 | return; |