From patchwork Mon Feb 20 16:55:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris BREZILLON X-Patchwork-Id: 9583393 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 041BD6047C for ; Mon, 20 Feb 2017 17:27:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C026527BFF for ; Mon, 20 Feb 2017 17:27:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2F4F28113; Mon, 20 Feb 2017 17:27:25 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 37D1627BFF for ; Mon, 20 Feb 2017 17:27:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=5sW7aV/yFxE8JPDhval6zl5vzN6zr3dQWp7Lx3ZvqVs=; b=Sb0UFsc4QGXNm7v+UwYHfDfh5p EZODiIEHp2Ae8nNPHHbRC9IIiqCx+QxNIDtkRciTIRP+AYb9wFSUMBkjP9bURhr7hBN71ML7hQC+K 2/8vrxzQws801liqUEgykzVzU+3B8sT32C48mvgHBNPQYWUBn6olH2co5oCIF8cTTUZBxTHZVfRNA IUrf8uOO2/Sat3MpFh+q2iPqdAUoRRdPzrk8G7UXEPefe0Z9roiBRz70SDz505jPG6EUSQGOWuecU DPLT/YZxhpbwB6nbj2lKtQLe6DPzAX1JV+JFCPwsjxNupj+B3Q8TYhG95oyPtEzEa2YTn4tYYLMZN vksNFxFQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cfrk4-0007MK-UX; Mon, 20 Feb 2017 17:27:16 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cfrfd-0003CC-8P for linux-arm-kernel@bombadil.infradead.org; Mon, 20 Feb 2017 17:22:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=8UZt7mVebk/Q+3v8usjP00FQmSHYTurM5nNJdMem/Ds=; b=ci/5Ax7ZkYaVoRSmHGYTbSpSK H5rvF5rNhziGco0m7t1P0+ki8+9C04YyLFwQeu7cVNYhgT01MMw4deAzqg37aIAEGzPxpGkyE1lVO DtcDrRvknFAn0+cwn0FyXf8+X7aJqKI8VgnJCdvvfhTSjDU7A70t1YkY0LPs9HCCcN61BZImMv2V1 KjcaS1kW5Hqmpo3ifFaZSBM6sxO9HQtug9LgdMkIO6PP0WVX4cu+kiNyxhb2ZaLXuMQ5r1PUAXWS/ HbpEajEq/KY/aZOwbdOoaNDnka6K39kXDDMT5rBGQk4dKhz+PpNyQMNBATmcKARu0E7VArysjBP+n ckxbdh/Jw==; Received: from mail.free-electrons.com ([62.4.15.54]) by merlin.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cfrFv-0004QC-0u for linux-arm-kernel@lists.infradead.org; Mon, 20 Feb 2017 16:56:07 +0000 Received: by mail.free-electrons.com (Postfix, from userid 110) id 9B5AE207E2; Mon, 20 Feb 2017 17:55:27 +0100 (CET) Received: from bbrezillon.home (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 61DEB207C0; Mon, 20 Feb 2017 17:55:08 +0100 (CET) From: Boris Brezillon To: Nicolas Ferre , Alexandre Belloni Subject: [PATCH 6/7] memory: atmel-ebi: Add missing ->numcs assignment Date: Mon, 20 Feb 2017 17:55:00 +0100 Message-Id: <1487609701-10300-7-git-send-email-boris.brezillon@free-electrons.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487609701-10300-1-git-send-email-boris.brezillon@free-electrons.com> References: <1487609701-10300-1-git-send-email-boris.brezillon@free-electrons.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170220_115607_267622_536C786C X-CRM114-Status: GOOD ( 11.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Boris Brezillon , Lee Jones , Samuel Ortiz , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP ebid->numcs is never assigned, set it to numcs after allocating the EBI dev object. Signed-off-by: Boris Brezillon --- drivers/memory/atmel-ebi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/memory/atmel-ebi.c b/drivers/memory/atmel-ebi.c index 833af8d02424..06a1a136d448 100644 --- a/drivers/memory/atmel-ebi.c +++ b/drivers/memory/atmel-ebi.c @@ -331,6 +331,7 @@ static int atmel_ebi_dev_setup(struct atmel_ebi *ebi, struct device_node *np, return -ENOMEM; ebid->ebi = ebi; + ebid->numcs = numcs; ret = caps->xlate_config(ebid, np, &conf); if (ret < 0)