Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2567974rwb; Sat, 29 Jul 2023 09:11:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlFVZdWffrn7l3Rha1UFlBpiFfmEYnDAjxsFYzCQR4UEjoeWZNSbFN0IUlDbEkgMb3l9nFpi X-Received: by 2002:a05:6a20:7291:b0:13c:9437:3f05 with SMTP id o17-20020a056a20729100b0013c94373f05mr5780083pzk.34.1690647097572; Sat, 29 Jul 2023 09:11:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690647097; cv=none; d=google.com; s=arc-20160816; b=Iao9RpFcUmWyR/CqUMecoZtW9KHjpjoE/sl+Gxfiv/SzaLRKOymyUF2oEs6gJbcqHk /PdHwgdSAKCsdU0tBzCQy7qaQ8Ka3nIgLLbPHEXxnQCra++CK6o/0hb3QROzU1DXMHSs T1PW5eZIeGZ1zxv7xdnzPP6UmveLK7+gFW0jySUf8LiGyBc+/ktcResmxCE7moupkIRK RuQd0+xgXgT55ZY053h5fDs0Jf8r2uLsOJpxijuzI93RhLHjuTx/2QedoNpeF/aEmf2E MocJiSkhIO/H8/fwNe0q7pQo6BqbeCojN5vdEChB1mb3OTTpEqVf3uxn7js23UeUOLM4 66KA== 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=gEVF7rXPeI4PGjsgBxtiYZJ/zbC37N4D4oIpXtrNUo8=; fh=d5axWsAJIJ4X++aECj8yiWwNVX2NVGZlotoUaE6eIkE=; b=Or3XvTGhPuzPZRUKG/UmLzRuM52KRZmUXSTZ+spMyn+Suqp13B8KLkJ4E018nfvt5n K4VrZVwcFWyu/6JVuBX4/8oY+DRqF0NdccpbLA0+tIyDHmr6ClF5wUtelc7cdspvry8w tLUZ1IAGC/WLODmgyYtkxiDOY0ZF/M34ze40oagrlK6i3egNd1ukVeHe4vdS+kKUUtZ2 7HSKLogyAgwsePz9Q8q+uKvM1lynx8rBj5nYaGsveJlugQM0ftrBSFGUYgnWf1uH7jhK yxC1C+HKjZaBEpoV8btOvbtfCCUBI5sAm8a68EiWUUlu0D9Br65qNc2BdEoHV7p+dgmV D6cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=n9rjjQhB; 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 a11-20020a63d40b000000b00563477c3519si644957pgh.488.2023.07.29.09.11.25; Sat, 29 Jul 2023 09:11:37 -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=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=n9rjjQhB; 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 S231518AbjG2ODu (ORCPT + 99 others); Sat, 29 Jul 2023 10:03:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230285AbjG2ODs (ORCPT ); Sat, 29 Jul 2023 10:03:48 -0400 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 033421FFA for ; Sat, 29 Jul 2023 07:03:48 -0700 (PDT) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1bbaa549c82so2353317fac.0 for ; Sat, 29 Jul 2023 07:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1690639427; x=1691244227; 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=gEVF7rXPeI4PGjsgBxtiYZJ/zbC37N4D4oIpXtrNUo8=; b=n9rjjQhBzl9xSGTDKJvdpNt3zao4B2YKPNBUsV4RNnvPx0ylvu0D7RYZMUAXJeKGcA vAci9rb1PSg9kD0up/XAsEq5cAcilOhXTeCX3GhT/ZvDHKp96i4nsmTPBpu4nZT/nEBd HERL56HO/4+9pqPB33hnajQGV40cT2vYQQMmVApaG196V9Md5FlRwfxdDr0A96d4RUZP 4vFB4KiH/3ilJaM7urVznxxrL5m85R/EZnk8ziB3nxipN9PIqYiyoptr2XLxnL9E5iIL aRnobeoKitpymlzl8iackFGhMU/8wdOm3/wERK8jAjtnnkV4fbWthaKOv9cWjqUY5A+R LTLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690639427; x=1691244227; 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=gEVF7rXPeI4PGjsgBxtiYZJ/zbC37N4D4oIpXtrNUo8=; b=Vw9le+HSuMQhWnr3jMNZv3ed+Drjd+Weq/UjjN+5EJsv0hy+/fzCTZV7N8JE4mSPSG tjoylRtAjHY+5Z+Qn/OfuMbkduZ+28H2LOayk2cPMYAw/tgDgxYUcbQDxpkrBpsp4f9o RG3J+K3hH97/js6CgMip0GEN7UANl37PhxVmUG2xt0YVqoDFpYUZd9whCXnfBnlJpUEo 8crtAj4LMvjXdioCfauMetsl6po/tO56K3g2iFmM9RqcLkhh5CoZM+PlpD7HmjOZgG+Z 1rZKlMDH0uyU1LGGwZA4Zw4OH5ifBfkt6XNZueDghjeKRD+5UzPQfekgogyxIIrWAieC 9q9Q== X-Gm-Message-State: ABy/qLZEh9RESYPR/Y4jm97o7bAYJ1pc3uryJ3B3+yMvDyNhxqKEo9IK 4J4KPymAG/EpvD99dPduZJxLJN6+Yw3IkfUem0hhwA== X-Received: by 2002:a05:6870:41d0:b0:1a6:a547:ffe1 with SMTP id z16-20020a05687041d000b001a6a547ffe1mr5626596oac.21.1690639427203; Sat, 29 Jul 2023 07:03:47 -0700 (PDT) MIME-Version: 1.0 References: <20230712094857.218105-1-alex@shruggie.ro> In-Reply-To: <20230712094857.218105-1-alex@shruggie.ro> From: Bartosz Golaszewski Date: Sat, 29 Jul 2023 16:03:36 +0200 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, andy@kernel.org 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_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 11:49=E2=80=AFAM 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. > > 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 > Applied, thanks! Bart