diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2012-05-22 15:23:13 +0300 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-06-14 16:29:46 -0700 |
commit | 9774bbe31a0741ad71929156f59afdb2aba4eae5 (patch) | |
tree | 97246003d1c10c6bf934d4080e01492c50acbdb8 /drivers/video/tegra/host/gr2d/gr2d.c | |
parent | d02edba6153149b30fbbd5eb9dec91f42eb0d732 (diff) |
video: tegra: host: Register devices in SoC files
Move the device structures to the driver source code files. Register
all nvhost_device's in one loop which is called from board file.
host1x driver code is moved to live under host1x, too. This causes
a need to add host to include path of tegradc and nvavp.
Bug 982965
Change-Id: If99cf9d1ef6bc24663ee8294c19370429ed04ca7
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: http://git-master/r/104076
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'drivers/video/tegra/host/gr2d/gr2d.c')
-rw-r--r-- | drivers/video/tegra/host/gr2d/gr2d.c | 12 |
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); } |