summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/host/mpe/mpe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/host/mpe/mpe.c')
-rw-r--r--drivers/video/tegra/host/mpe/mpe.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/video/tegra/host/mpe/mpe.c b/drivers/video/tegra/host/mpe/mpe.c
index 7468d4b9d753..cee0714bf079 100644
--- a/drivers/video/tegra/host/mpe/mpe.c
+++ b/drivers/video/tegra/host/mpe/mpe.c
@@ -30,10 +30,6 @@
#include "nvhost_memmgr.h"
#include <linux/slab.h>
-#include <linux/resource.h>
-
-#include <mach/iomap.h>
-#include <mach/hardware.h>
#include "bus_client.h"
@@ -656,15 +652,6 @@ static int mpe_resume(struct nvhost_device *dev)
return 0;
}
-static struct resource mpe_resources = {
- .name = "regs",
- .start = TEGRA_MPE_BASE,
- .end = TEGRA_MPE_BASE + TEGRA_MPE_SIZE - 1,
- .flags = IORESOURCE_MEM,
-};
-
-struct nvhost_device *mpe_device;
-
static struct nvhost_driver mpe_driver = {
.probe = mpe_probe,
.remove = __exit_p(mpe_remove),
@@ -681,19 +668,6 @@ static struct nvhost_driver mpe_driver = {
static int __init mpe_init(void)
{
- int err;
-
- mpe_device = nvhost_get_device("mpe");
- if (!mpe_device)
- return -ENXIO;
-
- /* use ARRAY_SIZE macro if resources are more than 1 */
- mpe_device->resource = &mpe_resources;
- mpe_device->num_resources = 1;
- err = nvhost_device_register(mpe_device);
- if (err)
- return err;
-
return nvhost_driver_register(&mpe_driver);
}