Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp2353440imc; Tue, 12 Mar 2019 12:02:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzv4pHJAWcqYP3hNaIkEc+c+PYB2kyogDSbNdnEPC7hcer4oz2FGEQ/GmYbuU7C2yoyePhJ X-Received: by 2002:a63:f558:: with SMTP id e24mr36054930pgk.373.1552417329242; Tue, 12 Mar 2019 12:02:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552417329; cv=none; d=google.com; s=arc-20160816; b=pdjjuGAck7GZYKiB+EPWTXk/1mn8/1T04h1xppEO3Qw4UMdSer0w0ZXiq38O/751AF iPHI424wemw+Xf1kcC6tIQbxBXFZHNTU4AXOpIgGLkJhwLDjl2qjve0e78tvIbAD/N4F vrsc2S+EsN9MKtY4STGjA8JdHSGryxZQNLgmfFpyNy+1mTWVLgFHldBculo+yF6ra7Sf YXH2PkVMHjnMmssV/Iq3lUbYKioJlBctnldLQSXFJZNJrAW71XatWN+9W3FUXDZNAN18 cY4XJxS0fcUYBS8nL/d+K231UVjL3tvW75qtIeoVNCcd7AADuQoF6PdPNEfIwX51WM/b tLgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=+BZRbNIhNOurSroe/tJA+wYWjkSTRqpJteypzf8z5ZY=; b=Y7WB56r29M1TZ26ODCxmWK673v5iBb8eLgBHOCTGeErdaWlYlgEtcbUBM30JTCHgXs UdgZsjcvxObDaY792SPIDfTnBS7w0ABrxJkT5dpQ81F7nAIGSeaZKYg5bpz0sCcP4Q8d hYgID9uhYSB4ro02npfjkSaAAHoS6vrQMuA5I+86wo2v5naqNEYoagSXyxAzr11AtqRD t8O5xBv7AauAymve536qBtowY5HBBhSqbyD2kznYJjep5nLQwikup4Ubu7fNfUiATybR nOzwfDrkCpaWwSVRVZG/Mor4YPYSXhj1gSyHByQFC6glZOCsMd/J978q5BzpWJjgXWjZ AdJg== 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 11si9469392plb.330.2019.03.12.12.01.52; Tue, 12 Mar 2019 12:02:09 -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 S1727075AbfCLTBc (ORCPT + 99 others); Tue, 12 Mar 2019 15:01:32 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:46625 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726815AbfCLTBc (ORCPT ); Tue, 12 Mar 2019 15:01:32 -0400 Received: by mail-vs1-f66.google.com with SMTP id b17so2252227vsr.13; Tue, 12 Mar 2019 12:01:31 -0700 (PDT) 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; bh=+BZRbNIhNOurSroe/tJA+wYWjkSTRqpJteypzf8z5ZY=; b=GoimaU9CZqGAOHxMHTIzgU68W2H51+0Uor4nqte4KhaZ7tuv15m03DqVeGrTl09hlO yaKF2AaihO2tnNqk6Nk+3AAD7ap4CFhSOry6F1fxvGOUY0G42ykkG39A0ATMXNHifvlq 09tfKwKI/tdZDck7ZBO72dOqS1gQfnzJ/qB7MBF/WZ1c67jsBO+M0/4ebXoQIHA8uX+N Pr8+AG6O0cKqY4qcoqQLlk7POx22gd0Eo4k5rgfqQxAEnuay7Mgv2eRxmmTtb0l7O0As Q1EdDQOyO10v62BsvlWecrdJu1tvfpKx/5hPghgn8KK3CSsSZjGudxzjNsNKWP1uyqAs EMfA== X-Gm-Message-State: APjAAAWt1E8vIgzm12EaGQdOL3hvDGhIRS4uotMVr6PKdk13wR8d5kz0 WqbuHCI2KCrsvJk6zYY3w1DD59MQ0Zwy8repErs= X-Received: by 2002:a67:7dd1:: with SMTP id y200mr18640499vsc.96.1552417290536; Tue, 12 Mar 2019 12:01:30 -0700 (PDT) MIME-Version: 1.0 References: <1552330521-4276-1-git-send-email-info@metux.net> <1552330521-4276-27-git-send-email-info@metux.net> In-Reply-To: <1552330521-4276-27-git-send-email-info@metux.net> From: Geert Uytterhoeven Date: Tue, 12 Mar 2019 20:01:18 +0100 Message-ID: Subject: Re: [PATCH 27/42] drivers: gpio: rcar: use devm_platform_ioremap_resource() To: "Enrico Weigelt, metux IT consult" Cc: Linux Kernel Mailing List , Linus Walleij , Bartosz Golaszewski , Andrew Jeffery , Florian Fainelli , Scott Branden , bcm-kernel-feedback-list@broadcom.com, hoan@os.amperecomputing.com, Orson Zhai , Baolin Wang , Lyra Zhang , keguang.zhang@gmail.com, vz@mleia.com, Matthias Brugger , Thierry Reding , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Robert Jarzmik , Masahiro Yamada , Jun Nie , Shawn Guo , "open list:GPIO SUBSYSTEM" , linux-mips@vger.kernel.org, Linux PWM List , "open list:TI ETHERNET SWITCH DRIVER (CPSW)" , linux-tegra , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CC linux-renesas-soc On Mon, Mar 11, 2019 at 7:58 PM Enrico Weigelt, metux IT consult wrote: > 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 Reviewed-by: Geert Uytterhoeven > --- a/drivers/gpio/gpio-rcar.c > +++ b/drivers/gpio/gpio-rcar.c > @@ -430,7 +430,7 @@ static int gpio_rcar_parse_dt(struct gpio_rcar_priv *p, unsigned int *npins) > static int gpio_rcar_probe(struct platform_device *pdev) > { > struct gpio_rcar_priv *p; > - struct resource *io, *irq; > + struct resource *irq; > struct gpio_chip *gpio_chip; > struct irq_chip *irq_chip; > struct device *dev = &pdev->dev; > @@ -461,8 +461,7 @@ static int gpio_rcar_probe(struct platform_device *pdev) > goto err0; > } > > - io = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - p->base = devm_ioremap_resource(dev, io); > + p->base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(p->base)) { > ret = PTR_ERR(p->base); > goto err0; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds