diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-07-05 13:40:17 +0200 |
---|---|---|
committer | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2016-07-06 08:16:56 +0200 |
commit | 24c4b47829a16f0f335621b3dee1a437297068d0 (patch) | |
tree | 34f5578077657a06bb5d0cf1b156b4376fa06b7d | |
parent | cpufreq: s5pv210: use relaxed IO accesors (diff) | |
download | linux-24c4b47829a16f0f335621b3dee1a437297068d0.tar.xz linux-24c4b47829a16f0f335621b3dee1a437297068d0.zip |
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>
-rw-r--r-- | drivers/memory/samsung/exynos-srom.c | 2 |
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; |