From patchwork Tue Jul 5 11:40:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seung-Woo Kim X-Patchwork-Id: 9214121 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BCC5D60572 for ; Tue, 5 Jul 2016 11:40:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ABBEF28A16 for ; Tue, 5 Jul 2016 11:40:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C82A28A18; Tue, 5 Jul 2016 11:40:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B392628A16 for ; Tue, 5 Jul 2016 11:40:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755091AbcGELkT (ORCPT ); Tue, 5 Jul 2016 07:40:19 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:54220 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754779AbcGELkS (ORCPT ); Tue, 5 Jul 2016 07:40:18 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O9U01UGKB34D8C0@mailout3.samsung.com>; Tue, 05 Jul 2016 20:40:16 +0900 (KST) Received: from epcpsbgm2new.samsung.com ( [172.20.52.113]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id E5.8A.05161.0AC9B775; Tue, 5 Jul 2016 20:40:16 +0900 (KST) X-AuditID: cbfee68f-f79476d000001429-b7-577b9ca09911 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 51.A4.04429.F9C9B775; Tue, 5 Jul 2016 04:40:16 -0700 (MST) Received: from localhost.localdomain ([10.113.62.209]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O9U007XGB31DT90@mmp2.samsung.com>; Tue, 05 Jul 2016 20:40:15 +0900 (KST) From: Seung-Woo Kim To: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, k.kozlowski@samsung.com, kgene@kernel.org Cc: cw00.choi@samsung.com, sw0312.kim@samsung.com Subject: [PATCH] memory: samsung: exynos-srom: fix wrong count of registers Date: Tue, 05 Jul 2016 20:40:17 +0900 Message-id: <1467718817-19239-1-git-send-email-sw0312.kim@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLLMWRmVeSWpSXmKPExsWyRsSkUHfBnOpwg8Z/nBbXvzxntXj9wtCi //FrZotNj6+xWlzeNYfNYsb5fUwWMya/ZHNg99i0qpPNY/OSeo++LasYPT5vkgtgieKySUnN ySxLLdK3S+DKOHxyLVvBcraKc6/3MTYwbmLtYuTgkBAwkTjUm9vFyAlkiklcuLeerYuRi0NI YAWjRPOblUwQCROJZw9XsEIkZjFK/N70jxnC+cEo8e3PFHaQKjYBHYn9S36DVYkITGOU+L+z lxEkwSxgKLH05H0wW1jAW+L8hw6wsSwCqhL3unrBbF4BN4nWSY3MEOsUJBbcewt2h4TAdzaJ jws+MUM0CEh8m3yIBeJuWYlNB6DqJSUOrrjBMoFRcAEjwypG0dSC5ILipPQiY73ixNzi0rx0 veT83E2MwFA9/e9Z/w7Guwes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7n9RXjxy04L44ZaXsPL3rMMWr5XtZnK/f+trpTccrHOwNj6157g czHSbOb17c19SizFGYmGWsxFxYkAkjKAoZ4CAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes wrong count of array for srom registers from probe function. Signed-off-by: Seung-Woo Kim Reviewed-by: Chanwoo Choi --- 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;