MIPS: Netlogic: Update function to read DRAM BARs
authorJayachandran C <jchandra@broadcom.com>
Wed, 7 Jan 2015 11:28:33 +0000 (16:58 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 1 Apr 2015 15:21:52 +0000 (17:21 +0200)
commitb3b73ae62ca82744c92c1c2d49381add26d0a8bd
treed0549c052e82468cce62a13899fc69011cebb12e
parentddba6833bbc5d0e1ed264ada2c00927c9f7cc11f
MIPS: Netlogic: Update function to read DRAM BARs

Change name of xlp_get_dram_map to nlm_get_dram_map to be consistent
with the rest of the functions in the file. Pass the the size of the
array 'dram_map' to the function, and ensure that it does not write
past the end of the array.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/8892/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/netlogic/xlp-hal/xlp.h
arch/mips/netlogic/xlp/nlm_hal.c
arch/mips/netlogic/xlp/setup.c