diff options
author | Srikar Srimath Tirumala <srikars@nvidia.com> | 2017-04-25 14:02:58 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-05-03 01:24:45 -0400 |
commit | 0a141c90af622bf2981fe7abbee9b1657ff1eea6 (patch) | |
tree | 6cc31ffacb3f59c23c9a9eee91a7e37d39b2e368 /drivers/gpu/nvgpu/tegra/linux | |
parent | 1f07668338e82091df618d79b0ce9d29aeb4a911 (diff) |
gpu: nvgpu: fix sparse warning
Declare bwmgr_set_rate as static since it is not used globally.
Bug 200067946
Change-Id: Ic853ff34b88aae90d0f8821478bcabeaa0cbd7ac
Signed-off-by: Srikar Srimath Tirumala <srikars@nvidia.com>
Reviewed-on: http://git-master/r/1469946
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/tegra/linux')
-rw-r--r-- | drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c index 880ed0ed..99c7e8b3 100644 --- a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c | |||
@@ -343,7 +343,8 @@ static void gk20a_tegra_calibrate_emc(struct device *dev, | |||
343 | } | 343 | } |
344 | 344 | ||
345 | #ifdef CONFIG_TEGRA_BWMGR | 345 | #ifdef CONFIG_TEGRA_BWMGR |
346 | void gm20b_bwmgr_set_rate(struct gk20a_platform *platform, bool enb) | 346 | #ifdef CONFIG_TEGRA_DVFS |
347 | static void gm20b_bwmgr_set_rate(struct gk20a_platform *platform, bool enb) | ||
347 | { | 348 | { |
348 | struct gk20a_scale_profile *profile = platform->g->scale_profile; | 349 | struct gk20a_scale_profile *profile = platform->g->scale_profile; |
349 | struct gk20a_emc_params *params; | 350 | struct gk20a_emc_params *params; |
@@ -356,6 +357,7 @@ void gm20b_bwmgr_set_rate(struct gk20a_platform *platform, bool enb) | |||
356 | rate = (enb) ? params->freq_last_set : 0; | 357 | rate = (enb) ? params->freq_last_set : 0; |
357 | tegra_bwmgr_set_emc(params->bwmgr_cl, rate, TEGRA_BWMGR_SET_EMC_FLOOR); | 358 | tegra_bwmgr_set_emc(params->bwmgr_cl, rate, TEGRA_BWMGR_SET_EMC_FLOOR); |
358 | } | 359 | } |
360 | #endif | ||
359 | 361 | ||
360 | static void gm20b_tegra_postscale(struct device *dev, unsigned long freq) | 362 | static void gm20b_tegra_postscale(struct device *dev, unsigned long freq) |
361 | { | 363 | { |