Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp2809391pxb; Sun, 8 Nov 2020 14:40:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpJlzidnJ58cF5d1heLjXzEi+qEJuQ+ZAh8T7LL9mXDttfsop3hGYWSz4DnhUSj/hvVlAr X-Received: by 2002:a17:906:d7a3:: with SMTP id pk3mr12084843ejb.208.1604875219105; Sun, 08 Nov 2020 14:40:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604875219; cv=none; d=google.com; s=arc-20160816; b=KQ1yx8Di7YPWiouM8EoklQl7fTE7jNO+frzyzVkLiix350crjbXz6XDGxdTrSOvywv FlHo2lOpc1yKgF1s95jYhyMpYs973DHi2F+I6AI0EielouThIeghnfxVo6I28MjXXB26 n81v2To8neY0Qo1mzgaxYpXQ5FacU4iTE6QtDA+nJ9FtX7U1ev41kJ0/CiRlxp1WQaa2 ZMEahNvaZ5Yco8L8g8Ue02ISppQ1AGhMUueDf3A/E9tVMng6E3350MQn4DabF4RB0PJT thaOo9UqAbRlyqhZRDPL7GW2PghAucF8uNkOkCXLYp/2pDlH5jncI7tGTDkGeIkN9Fdj 5jjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=zuJ1maXZ7jrGJ9iybIaY8WFerFT8tcwcrj9HN6Bi0Ls=; b=Cq+jrQnBblmg847hcdZXxkA0cTcSvibxYyzYjtVsxXSmVN2Nf9m/Z1QiG2mfkkQ8xY P7zpDc/rFef3nIUqu/nIl+jX2x1dIRNhIQHINoVO6QU19HCbJ0a4mpN8DFfXVErcpvjp LM1uGlpo4pSKAtwSpkz6wFjUXo9mCNp3EfPQRpemWAX/4TvZerA89rGPZ2TaKuNKC4S5 wuhiVVAPQpKmfCzhEAEdx7zKak/f4yevkhZH5ok+JySCP7vVpdM5FF7h4GdcaA/VIxGF 4In6tB/w/vofRgmUllPuobVbrs9c2h/kMWB3PE2laVbHpC1mVfBUTMmK23ZFFBa35uQb /clw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga18si5629548ejc.519.2020.11.08.14.39.43; Sun, 08 Nov 2020 14:40:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728191AbgKHWhm (ORCPT + 99 others); Sun, 8 Nov 2020 17:37:42 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:43231 "EHLO relay5-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727570AbgKHWhm (ORCPT ); Sun, 8 Nov 2020 17:37:42 -0500 X-Originating-IP: 86.194.74.19 Received: from localhost (lfbn-lyo-1-997-19.w86-194.abo.wanadoo.fr [86.194.74.19]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id F386D1C0002; Sun, 8 Nov 2020 22:37:39 +0000 (UTC) From: Alexandre Belloni To: Alessandro Zummo , Alexandre Belloni Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] rtc: rv3032: fix nvram nvmem priv pointer Date: Sun, 8 Nov 2020 23:37:10 +0100 Message-Id: <20201108223710.1574331-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The nvmem priv pointer is set to rv3032 but the rv3032_nvram_write and rv3032_nvram_read expect the regmap pointer. Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-rv3032.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-rv3032.c b/drivers/rtc/rtc-rv3032.c index 3e67f71f4261..14e931d6f9c6 100644 --- a/drivers/rtc/rtc-rv3032.c +++ b/drivers/rtc/rtc-rv3032.c @@ -889,7 +889,7 @@ static int rv3032_probe(struct i2c_client *client) if (ret) return ret; - nvmem_cfg.priv = rv3032; + nvmem_cfg.priv = rv3032->regmap; rtc_nvmem_register(rv3032->rtc, &nvmem_cfg); eeprom_cfg.priv = rv3032; rtc_nvmem_register(rv3032->rtc, &eeprom_cfg); -- 2.28.0