arch: arm: tegra_bb: remove unused ioremap
Martin Chabot [Mon, 25 Feb 2013 14:23:58 +0000 (15:23 +0100)]
BBC private region is no more mapped into kernel
This saves 64MB of vmalloc space

Bug 1233224

Change-Id: I523ba3d936c28e94a39e23daf30bb1e80cff7951
Signed-off-by: Martin Chabot <mchabot@nvidia.com>
Reviewed-on: http://git-master/r/203817
(cherry picked from commit 9505df4e024ba45c11e3fd9ba373356be13d19d2)
Reviewed-on: http://git-master/r/204574
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Greg Heinrich <gheinrich@nvidia.com>
Reviewed-by: Thomas Cherry <tcherry@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

arch/arm/mach-tegra/tegra_bb.c

index 019f1b8..357553c 100644 (file)
@@ -92,7 +92,6 @@ struct tegra_bb {
        char ipc_name[16];
        unsigned long priv_phy;
        unsigned long ipc_phy;
-       void *priv_virt;
        void *ipc_virt;
        void *mb_virt;
        unsigned long priv_size;
@@ -816,11 +815,6 @@ static int tegra_bb_probe(struct platform_device *pdev)
                                              SZ_1K*4);
        pr_debug("%s: uncached IPC Virtual=0x%p\n", __func__, bb->mb_virt);
 
-       /* Private is uncached */
-       bb->priv_virt =  ioremap_nocache(bb->priv_phy,
-                                       bb->priv_size);
-       pr_debug("%s: Priv Virtual=0x%p\n", __func__, bb->priv_virt);
-
        /* IPC memory is cached */
        bb->ipc_virt =  ioremap_cached(bb->ipc_phy,
                                        bb->ipc_size);