MLK-11985-2 ARM: imx: call __pa instead of virt_to_phys
authorAnson Huang <Anson.Huang@freescale.com>
Wed, 9 Dec 2015 10:55:10 +0000 (18:55 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:29 +0000 (14:49 -0500)
commite3712210039b0e586faa6e02abf64f7af18689ed
treecca7675fa1c128e38fed4619e064d14771942eb6
parent4e129c79fd7267af2be611bd0219b2530add800a
MLK-11985-2 ARM: imx: call __pa instead of virt_to_phys

Use different API to fix below issue reported by coverity:

Out-of-bounds access (ARRAY_VS_SINGLETON),
ptr_arith: Using &iram_tlb_phys_addr as an array.
This might corrupt or misinterpret adjacent memory locations.

Signed-off-by: Anson Huang <Anson.Huang@freescale.com>
arch/arm/mach-imx/busfreq_ddr3.c