Received: by 10.223.185.82 with SMTP id b18csp3405wrg; Thu, 8 Mar 2018 17:52:53 -0800 (PST) X-Google-Smtp-Source: AG47ELsOMIHmUmaJIxEh5PtSI+gJOES7DcvU6JofgfvqgbO6Qt0ff2khw8VBF39N5ry3TQQDdf07 X-Received: by 10.101.75.70 with SMTP id k6mr23496264pgt.335.1520560372926; Thu, 08 Mar 2018 17:52:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520560372; cv=none; d=google.com; s=arc-20160816; b=QwDENLTsMzkEmQMpxK107ausB5wCIhPpbgwftHXjmGeF5EoyjYifj+hjxmJG/R24yP xbis6If5FrPXvYaBeOIS+sjqzPFfvI8OEilzNnL2csqr0l/pLR9uUH2uG2TAzeY2QoBb orUa1c9U26ZKN6g/ZvB3w53Ur18lzyLrn7X/Rnl4d/0Ea7o3Z/+wdW5eqMaMoHk5K/BB zMHKHYYuKtfbXqwTp1tE+XsZIjXHTqgSyWc5VnURGgUAsOL4Divi73HsHylm1dND6+2r UmzfqCtqRE0LXOACYo2L26db5OmzZhfXXaZaG8VOfF/PNOC/59ZrCsU6fRWTBmD4sh60 bDDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:arc-authentication-results; bh=6TQOZwanVGiSAiWHVzzhKcgzzqOGkWH5BoJEVdVY6H0=; b=gkdtYjrbfDQMqlsa0KaoQ7+argBCkxWb1ANYjqLIv9/739MO2gYaGY6LmDRDiLOQKf TsK8jZb0kQedWDz6MsaCtVyWLCuP91L93Y8oSYikn6PPu6O4Oaz56U+JdMLBKl8vXfSz GdNb7rfTubXZaAXL7V4HIPCS1Y00C+P4hylcc1HhY5FgGtdLKauJZWmMsQbM7QifPJoK bDV1BUo7Nyw94cuuqP/cT6cq4l6yL8OXV1Dd2Zl/NMBMPYgad4CK9n9tb9UM59dynHWl +VWwbJeqcaJVL1didCnC14QNvTzv+WKcodCZv8eaInf7dj6CHroO56vH4y/BCmjQqhTM U3rg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v11si6793756pgf.383.2018.03.08.17.52.31; Thu, 08 Mar 2018 17:52:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751901AbeCIBvl (ORCPT + 99 others); Thu, 8 Mar 2018 20:51:41 -0500 Received: from regular1.263xmail.com ([211.150.99.132]:60130 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751113AbeCIBvk (ORCPT ); Thu, 8 Mar 2018 20:51:40 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.78]) by regular1.263xmail.com (Postfix) with ESMTP id 4E267941E; Fri, 9 Mar 2018 09:51:34 +0800 (CST) X-263anti-spam: KSV:0;BIG:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ADDR-CHECKED4: 1 X-ABS-CHECKED: 1 X-SKE-CHECKED: 1 X-ANTISPAM-LEVEL: 2 Received: from [172.16.22.73] (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 980E53A6; Fri, 9 Mar 2018 09:51:30 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: alexandre.belloni@bootlin.com X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: <8476abcfc93184479494c5a8d2569914> X-ATTACHMENT-NUM: 0 X-SENDER: cjf@rock-chips.com X-DNS-TYPE: 0 Received: from [172.16.22.73] (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 28313FGADYL; Fri, 09 Mar 2018 09:51:33 +0800 (CST) Message-ID: <5AA1E89F.2020500@rock-chips.com> Date: Fri, 09 Mar 2018 09:51:27 +0800 From: JeffyChen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130126 Thunderbird/19.0 MIME-Version: 1.0 To: Alexandre Belloni CC: linux-kernel@vger.kernel.org, broonie@kernel.org, linux-rtc@vger.kernel.org, Alessandro Zummo , Nicolas Ferre , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v3 2/4] rtc: at91sam9: Pass pdev->dev to regmap_init_mmio() References: <20180308102154.25686-1-jeffy.chen@rock-chips.com> <20180308102154.25686-3-jeffy.chen@rock-chips.com> <20180308204941.GK20370@piout.net> In-Reply-To: <20180308204941.GK20370@piout.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Alexandre, On 03/09/2018 04:49 AM, Alexandre Belloni wrote: > On 08/03/2018 at 18:21:52 +0800, Jeffy Chen wrote: >> Otherwise it would use "dummy*" to create regmap debugfs dir. >> >> Signed-off-by: Jeffy Chen >> --- >> >> Changes in v3: None >> >> drivers/rtc/rtc-at91sam9.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c >> index 7418a763ce52..0d6a17a77841 100644 >> --- a/drivers/rtc/rtc-at91sam9.c >> +++ b/drivers/rtc/rtc-at91sam9.c >> @@ -402,7 +402,7 @@ static int at91_rtc_probe(struct platform_device *pdev) >> if (IS_ERR(gpbr)) >> return PTR_ERR(gpbr); >> >> - rtc->gpbr = regmap_init_mmio(NULL, gpbr, >> + rtc->gpbr = regmap_init_mmio(&pdev->dev, gpbr, >> &gpbr_regmap_config); > > This would be misleading as the gpbr is not directly related to the rtc. ok, will fix that, thanks. >