summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/gr2d/gr2d.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/host/gr2d/gr2d.c')
-rw-r--r--drivers/video/tegra/host/gr2d/gr2d.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/video/tegra/host/gr2d/gr2d.c b/drivers/video/tegra/host/gr2d/gr2d.c
index c91a3aa23714..1bbfcdd8b587 100644
--- a/drivers/video/tegra/host/gr2d/gr2d.c
+++ b/drivers/video/tegra/host/gr2d/gr2d.c
@@ -44,8 +44,6 @@ static int gr2d_resume(struct nvhost_device *dev)
return 0;
}
-struct nvhost_device *gr2d_device;
-
static struct nvhost_driver gr2d_driver = {
.probe = gr2d_probe,
.remove = __exit_p(gr2d_remove),
@@ -61,16 +59,6 @@ static struct nvhost_driver gr2d_driver = {
static int __init gr2d_init(void)
{
- int err;
-
- gr2d_device = nvhost_get_device("gr2d");
- if (!gr2d_device)
- return -ENXIO;
-
- err = nvhost_device_register(gr2d_device);
- if (err)
- return err;
-
return nvhost_driver_register(&gr2d_driver);
}