diff options
author | Bharat Nihalani <bnihalani@nvidia.com> | 2011-09-26 19:21:08 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:49:04 -0800 |
commit | 67fec61dd0438d2e666ee3ecf84ffd6d04a3580e (patch) | |
tree | 4642aee485866f9d633d1c956e0836bb0b40fb07 /arch/arm/mach-tegra/board-cardhu-panel.c | |
parent | 844e97f6902ce5970f5231d033d067e124cc7abb (diff) |
ARM: tegra: nvavp: registering new nvavp driver
Also re-arranged tegra_nvavp code so that it is common accross boards
Bug 880623
Change-Id: I7d634a718e07e07e945fb512466b3a0672aea7e2
Reviewed-on: http://git-master/r/54487
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>
Rebase-Id: R78e4af97d967003560e80efce79d6b22d6d66c4f
Diffstat (limited to 'arch/arm/mach-tegra/board-cardhu-panel.c')
-rw-r--r-- | arch/arm/mach-tegra/board-cardhu-panel.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/arch/arm/mach-tegra/board-cardhu-panel.c b/arch/arm/mach-tegra/board-cardhu-panel.c index 910a0c1aef26..0cd01cc3ec89 100644 --- a/arch/arm/mach-tegra/board-cardhu-panel.c +++ b/arch/arm/mach-tegra/board-cardhu-panel.c @@ -949,24 +949,6 @@ static struct platform_device cardhu_nvmap_device = { }; -#if defined(CONFIG_TEGRA_NVAVP) -static struct resource tegra_nvavp_resources[] = { - [0] = { - .start = INT_SHR_SEM_INBOX_IBF, - .end = INT_SHR_SEM_INBOX_IBF, - .flags = IORESOURCE_IRQ, - .name = "mbox_from_avp_pending", - }, -}; - -static struct nvhost_device cardhu_nvavp_device = { - .name = "tegra-avp", - .id = -1, - .resource = tegra_nvavp_resources, - .num_resources = ARRAY_SIZE(tegra_nvavp_resources), -}; -#endif - static struct platform_device *cardhu_gfx_devices[] __initdata = { &cardhu_nvmap_device, &tegra_grhost_device, @@ -1031,7 +1013,7 @@ int __init cardhu_panel_init(void) #if defined(CONFIG_TEGRA_NVAVP) if (!err) - err = nvhost_device_register(&cardhu_nvavp_device); + err = nvhost_device_register(&nvavp_device); #endif return err; } |