ARM: tegra: Fix empty size check for linear FB
Hiroshi Doyu [Wed, 28 Aug 2013 11:44:34 +0000 (14:44 +0300)]
Fix wrong empty error check for linear FB.

Change-Id: I0405699d6d49945338f36820f57f8f2837356e16
Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com>
Reviewed-on: http://git-master/r/267356
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
Tested-by: Krishna Reddy <vdumpa@nvidia.com>

arch/arm/mach-tegra/devices.c

index 7e40e74..15e67a0 100644 (file)
@@ -2104,7 +2104,7 @@ void tegra_fb_linear_set(struct iommu_linear_map *map)
        dma_addr_t prev_end = 0;
 
        for (i = 0; i < ARRAY_SIZE(tegra_fb_linear_map) - 1; i++) {
-               if (!map->size)
+               if (!map[i].size)
                        continue;
 
                p->size += map[i].size;