diff options
author | Alex Frid <afrid@nvidia.com> | 2014-07-24 02:42:35 -0400 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-03-18 15:10:35 -0400 |
commit | ea530792c4bead6059fcb56541c7b57162ea0e0e (patch) | |
tree | 8d99cd985677e5bfa724ced664e93f86c5573daf /drivers/gpu/nvgpu/gm20b/clk_gm20b.c | |
parent | 4b89dfd82058ffdd63931e89821509b8003d0ffd (diff) |
gpu: nvgpu: Make clock operations static
Made GK20A and GM20B clock operations static, since they are invoked
only via HAL interfaces.
Bug 1450787
Change-Id: Ia30218ad4244bd8790b5ef96d1963678d0ba39e1
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/441710
Reviewed-by: Bo Yan <byan@nvidia.com>
Tested-by: Bo Yan <byan@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm20b/clk_gm20b.c')
-rw-r--r-- | drivers/gpu/nvgpu/gm20b/clk_gm20b.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c index e13c7a51..f22d4c10 100644 --- a/drivers/gpu/nvgpu/gm20b/clk_gm20b.c +++ b/drivers/gpu/nvgpu/gm20b/clk_gm20b.c | |||
@@ -623,7 +623,7 @@ static int gm20b_clk_register_export_ops(struct gk20a *g) | |||
623 | return ret; | 623 | return ret; |
624 | } | 624 | } |
625 | 625 | ||
626 | int gm20b_init_clk_support(struct gk20a *g) | 626 | static int gm20b_init_clk_support(struct gk20a *g) |
627 | { | 627 | { |
628 | struct clk_gk20a *clk = &g->clk; | 628 | struct clk_gk20a *clk = &g->clk; |
629 | u32 err; | 629 | u32 err; |
@@ -673,13 +673,7 @@ int gm20b_init_clk_support(struct gk20a *g) | |||
673 | return err; | 673 | return err; |
674 | } | 674 | } |
675 | 675 | ||
676 | void gm20b_init_clk_ops(struct gpu_ops *gops) | 676 | static int gm20b_suspend_clk_support(struct gk20a *g) |
677 | { | ||
678 | gops->clk.init_clk_support = gm20b_init_clk_support; | ||
679 | gops->clk.suspend_clk_support = gm20b_suspend_clk_support; | ||
680 | } | ||
681 | |||
682 | int gm20b_suspend_clk_support(struct gk20a *g) | ||
683 | { | 677 | { |
684 | int ret; | 678 | int ret; |
685 | 679 | ||
@@ -693,6 +687,12 @@ int gm20b_suspend_clk_support(struct gk20a *g) | |||
693 | return ret; | 687 | return ret; |
694 | } | 688 | } |
695 | 689 | ||
690 | void gm20b_init_clk_ops(struct gpu_ops *gops) | ||
691 | { | ||
692 | gops->clk.init_clk_support = gm20b_init_clk_support; | ||
693 | gops->clk.suspend_clk_support = gm20b_suspend_clk_support; | ||
694 | } | ||
695 | |||
696 | #ifdef CONFIG_DEBUG_FS | 696 | #ifdef CONFIG_DEBUG_FS |
697 | 697 | ||
698 | static int rate_get(void *data, u64 *val) | 698 | static int rate_get(void *data, u64 *val) |