Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1883420imc; Tue, 12 Mar 2019 02:39:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqygE5iKiMKyJcUajk/b/JLmyRtMOimp55qgovm+gTi76+nrggoFkVdjfOJTT7X4uDpzOsz4 X-Received: by 2002:a62:1283:: with SMTP id 3mr38611812pfs.122.1552383581851; Tue, 12 Mar 2019 02:39:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552383581; cv=none; d=google.com; s=arc-20160816; b=vSCh9GpVqqE9liI/WH38qhVZO/hsnI1chhBkK/UmgFEgaLZtL97AMzqY6Fl/sWlayi Lb1YHianhqIGopVpHk0heQFjYSKW6P+Qp6gPm9ZmMnJFQosgy3v7kcGxOR0MzBxh2wQH CWuP7bP7OsgqUXIkLGGUmm4H1305ODWdShAxo0kaD6J+SXMMDOYD6QfThFcOV49Ep2UU QEEr02TcrIRNg05gkhrXPJ9n2X8GW9nH4ukRvuoqKQxXAXEVwjULUWIgg/Mm2u+TncaN MksMLedbX+fC3e3owVah8OXPtqCT2Yvfk7cNphFbP3TWE/GPyyTIk0P51E/BBjDKM/Sq gRzA== 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:dkim-signature:dkim-filter; bh=ZwNetbz2Pt1VbQ3sMujgqlvUPKsyRAIvytTsSjSWouY=; b=RjoSfJbVrrTFFe9DQlzgJcZIQxLOwIqzM6xHzhdIXr/qBbVeApWKOm2feJ/OMpU3bl 8WecFG6D6/oh/HwXIa0rOy2o+Q7tEDyCmjQDg8SzfRdsYoUCj7j0ufWB2q48DczcIfeZ FoCJWkqoFkEDgXRaohjwInf/inREoHdDCnQdv9WA/tSCRsywNRQ+QPbv5xqZN5wYG4Xy 3ju/Jtn0eqP+G7u1SrVOp083B6eF05RGz39sg18Sg1zQVUtDJFkQ9TUNFFS6zUPi8qHp xpaQHMlIEnp/33IiMYZuUBfwel6UwcN30lEuKJd9GL1gZzmUFK4zAkRozMN81vv2YQz2 +tMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=dr3Q7Yn1; 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 g4si6940208pgi.380.2019.03.12.02.39.26; Tue, 12 Mar 2019 02:39:41 -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=@nifty.com header.s=dec2015msa header.b=dr3Q7Yn1; 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 S1726465AbfCLJhw (ORCPT + 99 others); Tue, 12 Mar 2019 05:37:52 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:35584 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725872AbfCLJhw (ORCPT ); Tue, 12 Mar 2019 05:37:52 -0400 Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x2C9bc4N025734; Tue, 12 Mar 2019 18:37:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x2C9bc4N025734 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1552383459; bh=ZwNetbz2Pt1VbQ3sMujgqlvUPKsyRAIvytTsSjSWouY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=dr3Q7Yn1oNl49u/CWFr5IdWcu4r4s5pvb2/u814G+6EtmzRJedwPGe7lGC0RakaCp 3U5G67m+Cwb3aaOz4febmp9/XhM9hmtm07RBtjoIdbt4Ocy8cNzLP5Yy2118r2OnI4 NbeWRCgJ+Pjqi8k2MgbYlEmcDXcGjyidyxQJ3tPIv0q9YIQM6fwhu8ucyx1WkArOTY VEzZJJp33OiTK+sL/t2NpSBNMeLZIoW7b414DLIYaATms1l0yzWfIGMFu+sC/wG/Ix J90PR6dU8PbVxff9QpiBZ1wFtrYfLF+nUi7Jt47H1DfqA3fxU1Np2OuNXPhVWO8JBG Rah/xiRjE8Bsw== X-Nifty-SrcIP: [209.85.217.47] Received: by mail-vs1-f47.google.com with SMTP id z6so1083050vsc.0; Tue, 12 Mar 2019 02:37:39 -0700 (PDT) X-Gm-Message-State: APjAAAWWYpBYktxvfJOmD0jGUfSV8SzcvQBVFVEnh3Bqz9lJncns+i2e 1GGw8hjrozOk4Qz5JqZiylrK+GBZIoHzfw0naQs= X-Received: by 2002:a67:ea05:: with SMTP id g5mr1878298vso.179.1552383458248; Tue, 12 Mar 2019 02:37:38 -0700 (PDT) MIME-Version: 1.0 References: <1552330521-4276-1-git-send-email-info@metux.net> <1552330521-4276-36-git-send-email-info@metux.net> In-Reply-To: <1552330521-4276-36-git-send-email-info@metux.net> From: Masahiro Yamada Date: Tue, 12 Mar 2019 18:37:02 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 36/42] drivers: gpio: uniphier: use devm_platform_ioremap_resource() To: "Enrico Weigelt, metux IT consult" Cc: Linux Kernel Mailing List , Linus Walleij , Bartosz Golaszewski , andrew@aj.id.au, Florian Fainelli , Scott Branden , Broadcom Kernel Feedback List , hoan@os.amperecomputing.com, orsonzhai@gmail.com, baolin.wang@linaro.org, zhang.lyra@gmail.com, keguang.zhang@gmail.com, Vladimir Zapolskiy , Matthias Brugger , Thierry Reding , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Robert Jarzmik , Jun Nie , Shawn Guo , "open list:GPIO SUBSYSTEM" , linux-mips@vger.kernel.org, linux-pwm@vger.kernel.org, Linux-OMAP , linux-tegra@vger.kernel.org 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 On Tue, Mar 12, 2019 at 3:57 AM 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 > --- Acked-by: Masahiro Yamada > drivers/gpio/gpio-uniphier.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpio/gpio-uniphier.c b/drivers/gpio/gpio-uniphier.c > index 0f662b2..93cdcc4 100644 > --- a/drivers/gpio/gpio-uniphier.c > +++ b/drivers/gpio/gpio-uniphier.c > @@ -346,7 +346,6 @@ static int uniphier_gpio_probe(struct platform_device *pdev) > struct uniphier_gpio_priv *priv; > struct gpio_chip *chip; > struct irq_chip *irq_chip; > - struct resource *regs; > unsigned int nregs; > u32 ngpios; > int ret; > @@ -370,8 +369,7 @@ static int uniphier_gpio_probe(struct platform_device *pdev) > if (!priv) > return -ENOMEM; > > - regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - priv->regs = devm_ioremap_resource(dev, regs); > + priv->regs = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(priv->regs)) > return PTR_ERR(priv->regs); > > -- > 1.9.1 > -- Best Regards Masahiro Yamada