Skip to content

Commit

Permalink
memory: samsung: exynos-srom: Fix wrong count of registers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
devusr-sw-kim authored and krzk committed Jul 6, 2016
1 parent 187364b commit 24c4b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/memory/samsung/exynos-srom.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 24c4b47

Please sign in to comment.