Received: by 10.223.185.116 with SMTP id b49csp58357wrg; Thu, 8 Mar 2018 12:51:12 -0800 (PST) X-Google-Smtp-Source: AG47ELvzyQ6S2gaH8mnLYd6ywclCRV4BEGj4hiNC0KOIZWfygkqqrCS5isyJtQUBQOMIY+ylehbL X-Received: by 10.98.233.3 with SMTP id j3mr27854588pfh.38.1520542272294; Thu, 08 Mar 2018 12:51:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520542272; cv=none; d=google.com; s=arc-20160816; b=WW3j6gMy/94Se4xliBbPUwdBTuAKWCZ/PU15tJSjcyRkREIjCKLAQSt162HTnvRUq6 Ywm3/XmIBmr1ux16bSJemHgPLi37D9XYzWfbmaF9GES6GmvnzdfSve2Rj1tx0Hc0FM2P KmC+83bhOxF8fbU0bVpDFK4ajW62gmeV29KTCHRc1KU/dB6f0x/1gSuKU4E3WFevc1+O +PVuGxyX0VJqZpyg21Y3sRyYbNJoe3K7jw9mkj+EM78y1ho9odWaKXqd0AGGOHJVJcmO CCYDV+C0I+g2VBt4F2KFtJs9itnu13xm/9Z4uD78N2q/xO8CAYfFVg6sAKSUndQESDVJ N9+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=cK+9XddlvOasf43WCS7NYiYjv2K4AMXcW0qeDisQKLU=; b=ykyCiPjraJCAW2Sfl64EvbvNj7gSe6dmRkJx/XGqIiRVjFY+6FSNPIjT0WIzv2jcEs viWpQCzVe+94HFNTFSZRql1g+cMk+RMW9rDuj3mc6KXafYWoHUfIuJOZLaSLdcoxRR/7 JhLctCwsogA1qlhyWfJAhxexpON2pX0tXoSZAp/ro0rg0H5WO1r7pDTE0C9gGg30qSMF JRSJ70N7YBKUY7Mtb4fGdyb9dAa4DMV0uV3X2Kz4tLwBZwuNhzZ+5peJhkyoLAX9yrHF f8DYGXYKarjEXi7UgcijgDFJ+UHBFtaib1fWxWFal2rPeyMAvSN96m4aYZORzKKSLQVn 8k6A== 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 y1-v6si3727663pln.220.2018.03.08.12.50.58; Thu, 08 Mar 2018 12:51:12 -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 S1751419AbeCHUtq (ORCPT + 99 others); Thu, 8 Mar 2018 15:49:46 -0500 Received: from mail.bootlin.com ([62.4.15.54]:35616 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbeCHUtn (ORCPT ); Thu, 8 Mar 2018 15:49:43 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 8AA612070F; Thu, 8 Mar 2018 21:49:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id 4136B200FB; Thu, 8 Mar 2018 21:49:40 +0100 (CET) Date: Thu, 8 Mar 2018 21:49:41 +0100 From: Alexandre Belloni To: Jeffy Chen 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() Message-ID: <20180308204941.GK20370@piout.net> References: <20180308102154.25686-1-jeffy.chen@rock-chips.com> <20180308102154.25686-3-jeffy.chen@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180308102154.25686-3-jeffy.chen@rock-chips.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com