diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2017-03-22 08:38:47 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-03-23 11:04:23 -0400 |
commit | 09126db3e4bec8fd65afb4386a2a24fe307ed1b7 (patch) | |
tree | 662d65e84040a11db4d39afd24135add9c1376ed /drivers/gpu | |
parent | e24ed1f6d77dc8b277a1b4735228c5c0011559d4 (diff) |
gpu: nvgpu: gv11b: remove .late_probe and .remove
The calls to nvhost_{register,unregister}_client_domain don't do
anything, so remove the platform device's late_probe and remove ops that
serve no other purpose than calling those empty functions. Remove also
the corresponding #includes which are now unused.
Bug 1853519
Change-Id: I67149d1575be5b3cacc60e6c28e6f2debfabf71c
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: http://git-master/r/1326126
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c b/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c index ab87d66f..75b72992 100644 --- a/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c +++ b/drivers/gpu/nvgpu/gv11b/platform_gv11b_tegra.c | |||
@@ -14,12 +14,10 @@ | |||
14 | */ | 14 | */ |
15 | 15 | ||
16 | #include <linux/of_platform.h> | 16 | #include <linux/of_platform.h> |
17 | #include <linux/nvhost.h> | ||
18 | #include <linux/debugfs.h> | 17 | #include <linux/debugfs.h> |
19 | #include <linux/platform_data/tegra_edp.h> | 18 | #include <linux/platform_data/tegra_edp.h> |
20 | #include <linux/dma-buf.h> | 19 | #include <linux/dma-buf.h> |
21 | #include <linux/nvmap.h> | 20 | #include <linux/nvmap.h> |
22 | #include <linux/tegra_pm_domains.h> | ||
23 | #include <linux/reset.h> | 21 | #include <linux/reset.h> |
24 | #include <linux/hashtable.h> | 22 | #include <linux/hashtable.h> |
25 | 23 | ||
@@ -57,22 +55,6 @@ static int gv11b_tegra_probe(struct device *dev) | |||
57 | return 0; | 55 | return 0; |
58 | } | 56 | } |
59 | 57 | ||
60 | static int gv11b_tegra_late_probe(struct device *dev) | ||
61 | { | ||
62 | /* Make gk20a power domain a subdomain of host1x */ | ||
63 | nvhost_register_client_domain(dev_to_genpd(dev)); | ||
64 | return 0; | ||
65 | } | ||
66 | |||
67 | static int gv11b_tegra_remove(struct device *dev) | ||
68 | { | ||
69 | /* remove gk20a power subdomain from host1x */ | ||
70 | nvhost_unregister_client_domain(dev_to_genpd(dev)); | ||
71 | |||
72 | return 0; | ||
73 | |||
74 | } | ||
75 | |||
76 | static bool gv11b_tegra_is_railgated(struct device *dev) | 58 | static bool gv11b_tegra_is_railgated(struct device *dev) |
77 | { | 59 | { |
78 | bool ret = false; | 60 | bool ret = false; |
@@ -105,8 +87,6 @@ struct gk20a_platform t19x_gpu_tegra_platform = { | |||
105 | .ptimer_src_freq = 31250000, | 87 | .ptimer_src_freq = 31250000, |
106 | 88 | ||
107 | .probe = gv11b_tegra_probe, | 89 | .probe = gv11b_tegra_probe, |
108 | .late_probe = gv11b_tegra_late_probe, | ||
109 | .remove = gv11b_tegra_remove, | ||
110 | 90 | ||
111 | /* power management callbacks */ | 91 | /* power management callbacks */ |
112 | .suspend = gv11b_tegra_suspend, | 92 | .suspend = gv11b_tegra_suspend, |