aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/tegra/drm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/tegra/drm.c')
-rw-r--r--drivers/gpu/drm/tegra/drm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
index 2817f43f3344..0f4eacb0af4f 100644
--- a/drivers/gpu/drm/tegra/drm.c
+++ b/drivers/gpu/drm/tegra/drm.c
@@ -214,7 +214,7 @@ free:
214 return err; 214 return err;
215} 215}
216 216
217static int tegra_drm_unload(struct drm_device *drm) 217static void tegra_drm_unload(struct drm_device *drm)
218{ 218{
219 struct host1x_device *device = to_host1x_device(drm->dev); 219 struct host1x_device *device = to_host1x_device(drm->dev);
220 struct tegra_drm *tegra = drm->dev_private; 220 struct tegra_drm *tegra = drm->dev_private;
@@ -227,7 +227,7 @@ static int tegra_drm_unload(struct drm_device *drm)
227 227
228 err = host1x_device_exit(device); 228 err = host1x_device_exit(device);
229 if (err < 0) 229 if (err < 0)
230 return err; 230 return;
231 231
232 if (tegra->domain) { 232 if (tegra->domain) {
233 iommu_domain_free(tegra->domain); 233 iommu_domain_free(tegra->domain);
@@ -235,8 +235,6 @@ static int tegra_drm_unload(struct drm_device *drm)
235 } 235 }
236 236
237 kfree(tegra); 237 kfree(tegra);
238
239 return 0;
240} 238}
241 239
242static int tegra_drm_open(struct drm_device *drm, struct drm_file *filp) 240static int tegra_drm_open(struct drm_device *drm, struct drm_file *filp)