Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp3385349rwb; Mon, 7 Aug 2023 12:38:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHk9YEkD7xdJWEwwVGtjlImPM2s3G7x3iniEdDbxrStjbY7drMPC1Z6ivhOsBO54LUsDNzP X-Received: by 2002:a05:6a00:c89:b0:668:8b43:8ded with SMTP id a9-20020a056a000c8900b006688b438dedmr14764799pfv.26.1691437123381; Mon, 07 Aug 2023 12:38:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691437123; cv=none; d=google.com; s=arc-20160816; b=jJy69YNEHWrqxLRzVVmClgLLkNdt171RpWIM/xnJK87nPb7NYhvzP/oYq5i5tl0D+6 6l2VHy6FO+zHRVUYu793sjdCFaPzJWSV6sFMzMdTpYk9x2ksMr/5bYjpHKBxnMA6VXhf InaCdjKlZCNamsdVqdecVBXK+9zbRniScRL0o+eFB63wvQIhzyGtHXoSANx1xWGt2lkU LEHlHgD4WrIuZOOTz4vozb+0vsWk2UpsD/Tz6dSC/crB9VDRivqMQQb8RHIuVUZeWc38 3EcDYyR7lWrwjtrytHyDcKyxoop2buu/A9vMG0ktbvyGdOF1bWFh9Ybg2P+teb4tpe2r C8Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+3IbEjZSX91UtpA+DFU2alOeKFrHIvSI2HurlIVr6js=; fh=crgsbY0N9xVw6HPqVdWEgIM/m1n2hh0TmI8e0vW6bto=; b=k2HL3KsSpU9Lf/7gV0TC+zzEqHwfCNvKeiKCGVYnYd4/C5F38YemPEptwvi+xKDOOr ugcZmTri5aL+hftm+31Un1AVN3mAXIYgK1kRPH9zzxLb+sqSsrcKdKPDKIL+OSG3Hhak NhiVoAvNKK3X4Odv2V9wJz037Cy+mSlGY0u/7ATUi3Z9+gLZN9b5D+RvjNzIKt4fIEYo 1GXTnAEAfbOKtd0lilqJ47wGg+5V1BuDYwuYmmCmCjE5CAtt/hG/CDA9TioC0/fbpmyE 6708YpvDcHpyYYXz3BgcFLINQ8xbmJ67nGOgZ3cxgF8dnMyzdhAwpKKOBpgzkAfWS44y jzng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shruggie-ro.20221208.gappssmtp.com header.s=20221208 header.b="NwYaf3R/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z6-20020aa78886000000b0066d93ab678asi6174055pfe.16.2023.08.07.12.38.31; Mon, 07 Aug 2023 12:38:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@shruggie-ro.20221208.gappssmtp.com header.s=20221208 header.b="NwYaf3R/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231337AbjHGRcY (ORCPT + 99 others); Mon, 7 Aug 2023 13:32:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230060AbjHGRcW (ORCPT ); Mon, 7 Aug 2023 13:32:22 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EE3AF9 for ; Mon, 7 Aug 2023 10:32:20 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4fe0fe622c3so7536617e87.2 for ; Mon, 07 Aug 2023 10:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shruggie-ro.20221208.gappssmtp.com; s=20221208; t=1691429539; x=1692034339; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+3IbEjZSX91UtpA+DFU2alOeKFrHIvSI2HurlIVr6js=; b=NwYaf3R/rYhOvQNdZdloSbfiIg7hZgRf2QbMu7sg8P2ZtTaOoipA9uhDRAmDO7yWkM kCgOcRFPCkYh70RLefLN0vHQ396mMoZf4O8yzSS17nKPJreU9BpqXbvAEA+/QPDfIrnT wATpYlY6MZ+MBmygufyDIWHwOcqm7YkMA6e76VX/8MsNmUYGnijI0iJetXwjjMeSt6t/ 0G8XmYLT4U0QLWcbPjIMZqocaYN0bfYO8xBtvETus+Ei5g26M4rbjSGwUQ1bdkcXrxWG oanHGMc3Bb4A5/lASbrRsL1Ft7QiV3qGTXyY9M3QaS6V6isOEsh/qe1jCxbFwOaQvQjy 4FbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691429539; x=1692034339; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+3IbEjZSX91UtpA+DFU2alOeKFrHIvSI2HurlIVr6js=; b=JON2l45nJKxRsEsL/sIs4cw0DtJczehee4ft5kmWC1+Pj9ffQgN0qHX48QR6eGdiRE ae4fr5jfIjjsZ7P2yWG8RDNuNEd5kz3W26h/zgUL24W2Cwlc77O02JA0Lc9VDcjXJdt1 eMEmBq4wsj+yo7ZRscdaEpkROMLYnztOtYDSvhQjJvzNuVtXtH1YRx2Fo4DEgqf6+454 vKWmPyZ+iCcCBNbmKI/C2i7IHQJHTZqevGDS/9eaJhqCSwf62OMrQnpaqXl/R+ynpH+p oDk8S28XAbruYTVzwRwhhBedHCIGmSxuGFH2VhZOZo48J3tJgftM7tEvDYLwF9TG8RbT PBNA== X-Gm-Message-State: AOJu0YwQHNE8eT4v900/CurwBh5toUIOCsWGlQEMyqV8UvuWrU1/lXwE 8z+x9YOxoYaMbZ7Kcw1dodV8cYQ7/jXt10rXDCroxw== X-Received: by 2002:a05:6512:3a82:b0:4fb:8bab:48b6 with SMTP id q2-20020a0565123a8200b004fb8bab48b6mr6232121lfu.52.1691429538643; Mon, 07 Aug 2023 10:32:18 -0700 (PDT) MIME-Version: 1.0 References: <20230807124811.16763-1-aboutphysycs@gmail.com> In-Reply-To: <20230807124811.16763-1-aboutphysycs@gmail.com> From: Alexandru Ardelean Date: Mon, 7 Aug 2023 20:32:06 +0300 Message-ID: Subject: Re: [PATCH] rtc: armada38x: remove unneeded call to platform_set_drvdata() To: Andrei Coardos Cc: linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alexandre.belloni@bootlin.com, a.zummo@towertech.it, sebastian.hesselbarth@gmail.com, gregory.clement@bootlin.com, andrew@lunn.ch Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 7, 2023 at 3:48=E2=80=AFPM Andrei Coardos wrote: > > This function call was found to be unnecessary as there is no equivalent > platform_get_drvdata() call to access the private data of the driver. Als= o, > the private data is defined in this driver, so there is no risk of it bei= ng > accessed outside of this driver file. > NAK on this. This still calls dev_get_drvdata() in PM routines to access the private dat= a. > Signed-off-by: Andrei Coardos > --- > drivers/rtc/rtc-armada38x.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/rtc/rtc-armada38x.c b/drivers/rtc/rtc-armada38x.c > index b4139c200676..5ed028429565 100644 > --- a/drivers/rtc/rtc-armada38x.c > +++ b/drivers/rtc/rtc-armada38x.c > @@ -527,7 +527,6 @@ static __init int armada38x_rtc_probe(struct platform= _device *pdev) > dev_warn(&pdev->dev, "Interrupt not available.\n"); > rtc->irq =3D -1; > } > - platform_set_drvdata(pdev, rtc); > > if (rtc->irq !=3D -1) > device_init_wakeup(&pdev->dev, 1); > -- > 2.34.1 >