Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38148577rwd; Wed, 12 Jul 2023 03:56:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlFG1HUnZlxLPsPE3wv/xMznBKlfl+3sXzV8dWNd0BZYMs9+MXuO/8XCbJVeCKJRQvr9gM4p X-Received: by 2002:a17:902:c951:b0:1b8:3e15:46a1 with SMTP id i17-20020a170902c95100b001b83e1546a1mr24386389pla.67.1689159394097; Wed, 12 Jul 2023 03:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689159394; cv=none; d=google.com; s=arc-20160816; b=X1T0QMWkkuoIsAHICfQNX7Nl226u6KKdVy4ani4ieyWZnyuBFUpb/Tr3JALHkbmjlE qQzvL4X0JBonsWa8Zm+XZfmjkp7syz+vRDUlCZzMeW9DCJVHDmfYzd7BtvuHTVREZABD WW+G9BXFMUmRCEbzcjneEcg+CM0aXHPTqHTwrDW6xFmmkxsCoJ5XbhWZCPJOU8/5YJOx pmYz5qRrrfv1PLuSJVqm2xHJTPwzfDWGSfkb+H0iIjH6OXlK3R3N6qnDhfYSZEicGvH8 acAJpkVVjLriFjy7Ww6+mLNe1LqXZLrgtRw2rqhajH2fST0nj0jMIkSg69ZgIn/EEOw7 hdEA== 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=Tg3PIZLxcmLPbTTz3barqLxpgo7A/s+2KALDE1Wf9vU=; fh=ktku9hd1Gt3x7wxEVgpZJjgq09MUL2u+yJ+k6VHfJAU=; b=RC+rxpjlbJ5JlB2FPq/WkJ0eQKy0f9+HlsewJYN+vDw/mMLFYKO1dGwRGXITrKUnAP lhfoT2CQxh2hXOfy4/dUYZQAfbTb5gSYItVYmEO6RhJHw1wMFcTe0FK/764ZgCCarZWw tpWBjuK/sciVG5FtVNHocOEhtKytNhZ1E9diG9GInh9ENnc0Sj5eiiUzvJW2hNtRKVxI zMs/a0pnTy+YJXMLFhtqY8zWdGjBuXcKUH6l9Htn/SHoMogcNYUkJ8EHWFR63cUdyN/d JcxQF6VGJ/cgCxjLComYk1Ct8dpFs1jQiDjncQpujRZiqzzVw8SoQHXQ0GAmObq9VLwU j+zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ooerHfqD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b7-20020a170902650700b001b9d2982362si3165090plk.36.2023.07.12.03.56.21; Wed, 12 Jul 2023 03:56:34 -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=@gmail.com header.s=20221208 header.b=ooerHfqD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231533AbjGLKFG (ORCPT + 99 others); Wed, 12 Jul 2023 06:05:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230361AbjGLKEl (ORCPT ); Wed, 12 Jul 2023 06:04:41 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63B2410F2; Wed, 12 Jul 2023 03:04:40 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-4fb8574a3a1so10530269e87.1; Wed, 12 Jul 2023 03:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689156278; x=1691748278; 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=Tg3PIZLxcmLPbTTz3barqLxpgo7A/s+2KALDE1Wf9vU=; b=ooerHfqDoFsg4m/SdmiYQ0dnFloeSITdEKTng/HddATq2I/D/J6ZC+Kn/GhSINvKz1 KCfJUEG3kl8uPA7khfxmjtwUsaMV+pb55KaIUergK+sB2zLaQSydH31fkK9wyAZ9qPtO WlaBK2gZD5sDEp2lEMZxVnsRqCUL6pKaDafT+4y59vLar23tFKSc6KMGq+R9boYvcaLn WN0QOWGjlIXGG8KJl3XLKpUUtsWaRML4qu2iMmVeMFSIAen6H85GcTAKP3r9Lh2tKmoC lckAQPTaAYKxNuarzDG+EzRwls+IYDQ+pDOcMadp4w582zV71e5ILwKlIEz+f4bysOlq iFKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689156278; x=1691748278; 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=Tg3PIZLxcmLPbTTz3barqLxpgo7A/s+2KALDE1Wf9vU=; b=ANOTbmVRpO+KmtprdCza/q5hX//jnWGt0lp84C2xzL0J38LYkEkl+e3uNGyvqhvRRG AHv9we1bLopV0HeaU8fd0uPQUKaSneJPK8hF9NLDyjEMX/55SEt6bVgIk6nCi4X5GhrK R13FURqoXcKh6oUOOJYhO0xykYStNMyfOVciV23Ycu5aLbJkPyVuCK21y4kF2VyApFWL Q+B2SVsIjnylmbB35m/OtFsFcVjoNFWL6+BHWGUOyorlk96/PO/sRTkoGGAzFpTZ93fu rrJ1OURjNLqn/9zJucjrSUoMFvZ+pWeNITOJibTnIH3QjOZk4p+R4MOcELDrSDNiIff/ NHrg== X-Gm-Message-State: ABy/qLYA/8vAoN9rv0Talk9dNl16uskAYWy2h6F+6ozkWeGZU+WqZFGy /nYtzENG7Gkkwx0nibPZrnu2z1dfZYoRzcdCgBI= X-Received: by 2002:a05:6512:1108:b0:4f4:dbcc:54da with SMTP id l8-20020a056512110800b004f4dbcc54damr17321858lfg.27.1689156277984; Wed, 12 Jul 2023 03:04:37 -0700 (PDT) MIME-Version: 1.0 References: <20230712094857.218105-1-alex@shruggie.ro> In-Reply-To: <20230712094857.218105-1-alex@shruggie.ro> From: Andy Shevchenko Date: Wed, 12 Jul 2023 13:04:01 +0300 Message-ID: Subject: Re: [PATCH] gpio: 74xx-mmio: remove unneeded platform_set_drvdata() call To: Alexandru Ardelean Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, brgl@bgdev.pl, andy@kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Wed, Jul 12, 2023 at 12:49=E2=80=AFPM Alexandru Ardelean wrote: > > The platform_set_drvdata() was needed when the driver had an explicit > remove function. > That function got removed a while back, so we don't need to keep a pointe= r > (on 'dev->driver_data') for the private data of the driver anymore. Reviewed-by: Andy Shevchenko > Signed-off-by: Alexandru Ardelean > --- > drivers/gpio/gpio-74xx-mmio.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/gpio/gpio-74xx-mmio.c b/drivers/gpio/gpio-74xx-mmio.= c > index 0464f1ecd20d..c7ac5a9ffb1f 100644 > --- a/drivers/gpio/gpio-74xx-mmio.c > +++ b/drivers/gpio/gpio-74xx-mmio.c > @@ -135,8 +135,6 @@ static int mmio_74xx_gpio_probe(struct platform_devic= e *pdev) > priv->gc.ngpio =3D MMIO_74XX_BIT_CNT(priv->flags); > priv->gc.owner =3D THIS_MODULE; > > - platform_set_drvdata(pdev, priv); > - > return devm_gpiochip_add_data(&pdev->dev, &priv->gc, priv); > } > > -- > 2.40.1 > --=20 With Best Regards, Andy Shevchenko