diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/driver_common.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c index 14d4dd40..7d6acf91 100644 --- a/drivers/gpu/nvgpu/common/linux/driver_common.c +++ b/drivers/gpu/nvgpu/common/linux/driver_common.c | |||
@@ -134,20 +134,6 @@ static void nvgpu_init_mm_vars(struct gk20a *g) | |||
134 | nvgpu_mutex_init(&g->mm.priv_lock); | 134 | nvgpu_mutex_init(&g->mm.priv_lock); |
135 | } | 135 | } |
136 | 136 | ||
137 | static int gk20a_secure_page_alloc(struct device *dev) | ||
138 | { | ||
139 | struct gk20a_platform *platform = dev_get_drvdata(dev); | ||
140 | int err = 0; | ||
141 | |||
142 | if (platform->secure_page_alloc) { | ||
143 | err = platform->secure_page_alloc(dev); | ||
144 | if (!err) | ||
145 | platform->secure_alloc_ready = true; | ||
146 | } | ||
147 | |||
148 | return err; | ||
149 | } | ||
150 | |||
151 | int nvgpu_probe(struct gk20a *g, | 137 | int nvgpu_probe(struct gk20a *g, |
152 | const char *debugfs_symlink, | 138 | const char *debugfs_symlink, |
153 | const char *interface_name, | 139 | const char *interface_name, |
@@ -178,11 +164,6 @@ int nvgpu_probe(struct gk20a *g, | |||
178 | if (IS_ENABLED(CONFIG_GK20A_DEVFREQ)) | 164 | if (IS_ENABLED(CONFIG_GK20A_DEVFREQ)) |
179 | gk20a_scale_init(g->dev); | 165 | gk20a_scale_init(g->dev); |
180 | 166 | ||
181 | err = gk20a_secure_page_alloc(g->dev); | ||
182 | if (err) | ||
183 | dev_err(g->dev, | ||
184 | "failed to allocate secure buffer %d\n", err); | ||
185 | |||
186 | if (platform->late_probe) { | 167 | if (platform->late_probe) { |
187 | err = platform->late_probe(g->dev); | 168 | err = platform->late_probe(g->dev); |
188 | if (err) { | 169 | if (err) { |