Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2082224imc; Tue, 12 Mar 2019 06:46:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDH7zhRTapl7LggPO87fVzEmjRYSi+Z1f5Ki5voOZDPVXd1cdPP0VFn7/l6pgde48cx8WO X-Received: by 2002:a62:1a4c:: with SMTP id a73mr4645430pfa.203.1552398362157; Tue, 12 Mar 2019 06:46:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552398362; cv=none; d=google.com; s=arc-20160816; b=0tqDQEFk61hMJIejlAzDUb0Yu8RP+Zpo7zm9+LQVMOu+s+QZNEa6s6xHg41k5mBTTO tD6tytoNH8Jc2cwfWljpTL1qIDqky5VIQd4XXoUm8XT/ZrxOS15EdTFVYhIKfXS4uk2+ sHQdjEP8FmxUPyrja6sCj5h/AlVZEH5LtyTe92bhAB2ohuzhJj5DSeWBNKaxbghob+Lo sLzb6WTG3N01mAeV6vfjWdskIiAKNpNeaaArUjLBG5zglxk9nhtDaiNPgCJez8WAxnOd gF/UPVFjABpKNRMJDrE6aSyEoSQB5LX8jMnggcFx4rqHNpF9yxEir9L28MSVqM8z7ntO cUiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=7tCQ4cCXOyvwuYzH7M5bEOmVDuY2wMmX5oUwXlTGw0k=; b=h79TH4TYCeNfInee84JVGj/VzAwvlf1dBNAvgIzCWgeVUHGpGyT52G+uxavpok4ola dTejMIEGoWJFy62qFx8R2M5Ld/ljYK0CNY24TSKEmVG8ZdqyqW4E+GQl7Oq/ISMc4lR4 vmoRqxFARKJYKUIyISykdVeUd+crnxbFkfyUWYLLOwHzXpTE5J3FVjqYHwsu+5v8es8l oqRQPob2Nslolo6r9Jg9P/NC9hEnUQOuKbj5/1POkhbovvv7zwtLA7AxwpQVcTo6oYlv 5eB9uwg/gEzD7Bd+DW+RRZR67CoK3lgnvt6Osr5Bkc7ahHEtD26y9QH5MWkK/Kl2tlbZ XTNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=x8+JA5GC; 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 j127si7895432pgc.9.2019.03.12.06.45.45; Tue, 12 Mar 2019 06:46:02 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=x8+JA5GC; 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 S1725874AbfCLNpO (ORCPT + 99 others); Tue, 12 Mar 2019 09:45:14 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:34227 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbfCLNpO (ORCPT ); Tue, 12 Mar 2019 09:45:14 -0400 Received: by mail-ot1-f66.google.com with SMTP id r19so2524600otn.1 for ; Tue, 12 Mar 2019 06:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=7tCQ4cCXOyvwuYzH7M5bEOmVDuY2wMmX5oUwXlTGw0k=; b=x8+JA5GCWKmesTtncgXxYdRADk2orsN/HoHyKaKJ4eA1ZKbR/Ja/VoC6z3UmXIm//5 o8P2gpaSENFD85BDDcuGcFm1hGbwGxaEHilQyXLvRVI1EEMfek8eusQFABOf2ABAtxNr Sm7Xv+4Ts66Ye/w0/iCHUAs3DVQ8r0ytU2BpvITeJaQKzFohhXtkNDuCoB/8ovPbOksl y3VcPhennx/5s83X1TWE+juqyiUK+Z3AZi7TtJMUBY62Z7gYB4nTvK+5EVnmSdowaFMA r7j4/GBjMHIxOzAWoa9I33jeARF+4ou/GuhVYc/3Qg8ojhbVoqQLyM0bzwM91s56KCaa C5gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=7tCQ4cCXOyvwuYzH7M5bEOmVDuY2wMmX5oUwXlTGw0k=; b=c4NAYHPRv1UWmPOyiM2s5MkmZDZXRrwfG5Oysu+nqYqI6K1eZIqTvjUxCaN1fesSba 1khK8HzI0ONQ2NC+JDZ9F3OaOecilpRM6MJTygu7ZqzZ+rMor9SGkvOdYmd9bRrDSObV PsNTmrHRPpsl6D+2AIXnr63QenBYtTTfjs5NBxGB/J+rIewzGe+5FsqTQIgF+Xx6i7xy AOhqdHXQljyOmOuH2vYp0GsmaRGC0IDvowKTvwKwozpoyt2oMcmTGHQuwK7jc9b+ZIxd TRUkKm35KqBD8U2H7mwuHcj/CXGaBjmpf8eDVt7couDSHMsZqJ8LZappTCXaTzVn6+Su 6QRg== X-Gm-Message-State: APjAAAVsoGPpC8igug9YfuayOWf/R9fQZcwCy+NL7kvhlOGcILWRZCSo HFx2mGO/UYW9r9L3WTpbfBlw02Ccfq5QUgh7Q/XuUw== X-Received: by 2002:a9d:65c2:: with SMTP id z2mr22424809oth.301.1552398313120; Tue, 12 Mar 2019 06:45:13 -0700 (PDT) MIME-Version: 1.0 References: <1552330521-4276-23-git-send-email-info@metux.net> <1552333701-22712-1-git-send-email-info@metux.net> In-Reply-To: <1552333701-22712-1-git-send-email-info@metux.net> From: Bartosz Golaszewski Date: Tue, 12 Mar 2019 14:45:01 +0100 Message-ID: Subject: Re: [PATCH] drivers: gpio: octeon: use devm_platform_ioremap_resource() To: "Enrico Weigelt, metux IT consult" Cc: LKML , Linus Walleij , linux-gpio Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 11 mar 2019 o 20:48 Enrico Weigelt, metux IT consult napisa=C5=82(a): > > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult > --- > drivers/gpio/gpio-octeon.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpio/gpio-octeon.c b/drivers/gpio/gpio-octeon.c > index 1b19c88..afb0e8a 100644 > --- a/drivers/gpio/gpio-octeon.c > +++ b/drivers/gpio/gpio-octeon.c > @@ -82,7 +82,6 @@ static int octeon_gpio_probe(struct platform_device *pd= ev) > { > struct octeon_gpio *gpio; > struct gpio_chip *chip; > - struct resource *res_mem; > void __iomem *reg_base; > int err =3D 0; > > @@ -91,8 +90,7 @@ static int octeon_gpio_probe(struct platform_device *pd= ev) > return -ENOMEM; > chip =3D &gpio->chip; > > - res_mem =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); > - reg_base =3D devm_ioremap_resource(&pdev->dev, res_mem); > + reg_base =3D devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(reg_base)) > return PTR_ERR(reg_base); > > -- > 1.9.1 > Can you make this a part of the bigger series and resend together with subject line fixes? Also: maybe consider adding a coccinelle script for that. When I added that function I noticed there are 1200+ instances in the kernel that need fixing. I think we'll be better off automating it. Bart