Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4373688ybi; Mon, 15 Jul 2019 08:01:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQt1zg1JVB05/NmTlofChA/INEp+um4t3kx6sYamR/IvWHWhOGuJY1MbZDb52J9R2PlwYB X-Received: by 2002:a17:90a:2305:: with SMTP id f5mr31391935pje.128.1563202885395; Mon, 15 Jul 2019 08:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563202885; cv=none; d=google.com; s=arc-20160816; b=bJ7F3X46CYlL6QyLXlgTizoSIaNyGByRwgrw8R3xmdgNQLNIFmE319zYCd1NQUMelB w/IHIN8BE57Azae9CIwYCwMdYQHgqu154U5pkQO5Nupl0F16CTKiDVWlhWbB0wtf8PkK 93WnCRjy12rH3Xzp67YDWTbIz1Xesn3eQrpE6r2AMB1LZ/DVI46z+1+o/EpTo977n2pB TPHsvYF5xC3Y7ggjSn/JqvSbm2XdmoBAFj4xlHVwh+B5sk/qweOHUacMbYDoGT7kuhDX 1ddOfWTe+aXV32be80QMgt1yYVwhJwvb3lXzGFpINLff5VNuEBo+0waCmRh8hgGC+7BS XDKA== 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; bh=rhBTWzWMy1e7JGgtnX79I8tW03rwDVrbMNjhgdhYXfg=; b=h5LqmSoL01Iycl0NBDs0hYvRyMHn/Ccq1OYcbGSwth+IxoSmn2kGpIMWfdXcGRmpO2 QJvwU0+rzAl+6jvr+BPYW9z7iWE+7b7Lh+W1rCSdp+2HZhCpYBKUgm77NYWx5piPrXwI 5JPWwyXZmdULsjT1Kn6/gDTGJrtl9JTHiz8vhQfXeycaodAxlWOlhyZm16DlDhJefjvv YsBreCzXDIV6kRStONGNIX3iBN3+xjCO9EnMVCveIcfphf9yaSrBVYC3MXOjCWds0Vs+ hBvtirHrQREQqKRMtavfZ1Ixh8GmxhmZk0lMsfrVQHZ6jhu9Rbtn6WBDTwTImYu+lzVL 8zSw== 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 x13si8998924pgf.275.2019.07.15.08.01.05; Mon, 15 Jul 2019 08:01:25 -0700 (PDT) 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 S1731111AbfGOO7y (ORCPT + 99 others); Mon, 15 Jul 2019 10:59:54 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:56733 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390634AbfGOO7t (ORCPT ); Mon, 15 Jul 2019 10:59:49 -0400 Received: from localhost (alyon-656-1-672-152.w92-137.abo.wanadoo.fr [92.137.69.152]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 01B4B240005; Mon, 15 Jul 2019 14:56:38 +0000 (UTC) Date: Mon, 15 Jul 2019 16:56:37 +0200 From: Alexandre Belloni To: Biwen Li Cc: a.zummo@towertech.it, leoyang.li@nxp.com, robh+dt@kernel.org, linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, xiaobo.xie@nxp.com, jiafei.pan@nxp.com, ran.wang_1@nxp.com, mark.rutland@arm.com, devicetree@vger.kernel.org Subject: Re: [v4,1/2] rtc/fsl: add FTM alarm driver as the wakeup source Message-ID: <20190715145637.GG4732@piout.net> References: <20190715101520.22562-1-biwen.li@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190715101520.22562-1-biwen.li@nxp.com> User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/07/2019 18:15:19+0800, Biwen Li wrote: > + device_init_wakeup(&pdev->dev, true); > + rtc->rtc_dev = devm_rtc_device_register(&pdev->dev, "ftm-alarm", > + &ftm_rtc_ops, > + THIS_MODULE); To be clear, I want you to not use devm_rtc_device_register and use devm_rtc_allocate_device and rtc_register_device. > + if (IS_ERR(rtc->rtc_dev)) { > + dev_err(&pdev->dev, "can't register rtc device\n"); > + return PTR_ERR(rtc->rtc_dev); > + } > + -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com