summaryrefslogtreecommitdiff
path: root/drivers/memory
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2016-07-05 14:40:17 +0300
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>2016-07-06 09:16:56 +0300
commit24c4b47829a16f0f335621b3dee1a437297068d0 (patch)
tree34f5578077657a06bb5d0cf1b156b4376fa06b7d /drivers/memory
parent187364b6fcabb9f4bfefcb62fab4fcda019b5810 (diff)
downloadlinux-24c4b47829a16f0f335621b3dee1a437297068d0.tar.xz
memory: samsung: exynos-srom: Fix wrong count of registers
This patch fixes wrong count of array for SROM registers from probe function. Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Diffstat (limited to 'drivers/memory')
-rw-r--r--drivers/memory/samsung/exynos-srom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/memory/samsung/exynos-srom.c b/drivers/memory/samsung/exynos-srom.c
index 067f53324901..bf827a666694 100644
--- a/drivers/memory/samsung/exynos-srom.c
+++ b/drivers/memory/samsung/exynos-srom.c
@@ -134,7 +134,7 @@ static int exynos_srom_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, srom);
srom->reg_offset = exynos_srom_alloc_reg_dump(exynos_srom_offsets,
- sizeof(exynos_srom_offsets));
+ ARRAY_SIZE(exynos_srom_offsets));
if (!srom->reg_offset) {
iounmap(srom->reg_base);
return -ENOMEM;