[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-id: <1467718817-19239-1-git-send-email-sw0312.kim@samsung.com>
Date: Tue, 05 Jul 2016 20:40:17 +0900
From: Seung-Woo Kim <sw0312.kim@...sung.com>
To: linux-samsung-soc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
k.kozlowski@...sung.com, kgene@...nel.org
Cc: cw00.choi@...sung.com, sw0312.kim@...sung.com
Subject: [PATCH] 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@...sung.com>
---
drivers/memory/samsung/exynos-srom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/memory/samsung/exynos-srom.c b/drivers/memory/samsung/exynos-srom.c
index 96756fb..c66d2bd 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;
--
1.7.9.5
Powered by blists - more mailing lists