Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1641143imc; Mon, 11 Mar 2019 19:40:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqzePKqnsfqehbATSGg10n0JnqWx4ZcpA1wk3wP10rA0yki1O8HOVaA4CURtJAGMnDuNxgdZ X-Received: by 2002:a62:1f58:: with SMTP id f85mr36182297pff.39.1552358458617; Mon, 11 Mar 2019 19:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552358458; cv=none; d=google.com; s=arc-20160816; b=qVDE0VfrxScX5+Cn0hdevjFy3iTcajgco6Ay8dwspi+Au3XRU3ygjytZ48VG+2tflw juVsdAeqaG8ISlHr9TEnVcPSrkR27lVR0/trIks/GFq0lQmKssn5wj7EFmk5ZtpNmf/N fM9dX9ap/qD2Ka+VfEqoVUl7llUxMfQfHMmTp5h/OAC/3UfY0yRBcIX+cOFvGvbQpcZO J/pS7WmRcyZ/0Ch90ZWk7F6PodHvQX+Cnm0JVtsKu1kLxOo5xGX0ugYpFOkWH8G+Onxf +CHeH8Mv3h6htSl7mbcOUDrwSGaxsSlVAXduK3DScaKwrPvQFpVY4n5Eva/L7g2zKbJ1 xnfw== 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; bh=VVaTFBG0+lQoQppWGKUSe0AwIDjJIeYxpQN8IhuEwUQ=; b=ANz5VTnMJ/yhrXp1KLohwRZrgzy3LwzRCpwyP27EVLKi2Eo6HQO+4NtII1icEX5tGa X4RIwm4x3BokvPqtaeJdIZ7cfgngh+izVGo1COlY7p5d8cJPhg5GTfwo8lkekZn4SnPH YwIgjAzJwm2yYXqzykcIO/56hDlBNl2IaZMfNru75B/fgQhHyE9oJbuFgxinWAc483pE 7ZHCH+B0whbx9YbkdNS91y583yMsxE2kPDmQ8IAmu04WWP+s1vTkhLvb8DwLvjd/1q3r rNKnOikSlmeV0MIqMQjiQ81xkFdnPSpa9+OYRlTlcCPFJFoKSaqDYnF3YnysBeVjZ4Gx B5xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=uDP2aBYO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si6208116pgv.53.2019.03.11.19.40.42; Mon, 11 Mar 2019 19:40:58 -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=@linaro.org header.s=google header.b=uDP2aBYO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726861AbfCLCkS (ORCPT + 99 others); Mon, 11 Mar 2019 22:40:18 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:46780 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726663AbfCLCkR (ORCPT ); Mon, 11 Mar 2019 22:40:17 -0400 Received: by mail-lj1-f193.google.com with SMTP id v16so864156ljg.13 for ; Mon, 11 Mar 2019 19:40:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VVaTFBG0+lQoQppWGKUSe0AwIDjJIeYxpQN8IhuEwUQ=; b=uDP2aBYOzeTRbd4vVVBgOag7L67Y9vF0yY5RrEmvgHp/Vt+ygZm4EB56IApnZhO/O2 NEJ3pfN2C5btCTA1Wunew3n1u1aI0Ew0pyXd3ezFrPFOWK1ZHYm+wqyjqqjwdm5GOFJ6 2rnnrMAlTr8jZQamzrClUAgjylj6taKKkshpZ6A9dSYJCKuAzG84hrUh+/70oF6i0q/T R0Rhy+isJxx+1Aq2mpoxtksvgdRfdw6FR6cfKitil5vNYh9iY058U0DXwYztgRHJUinQ ZAVLcQ4NqpRUcq5MmqkBkLXfXoCDaiSFItlEkjPZdNHpmXobTVSiqUXcI143Itm0vT0U Yz/w== 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=VVaTFBG0+lQoQppWGKUSe0AwIDjJIeYxpQN8IhuEwUQ=; b=alIwhxprqedBsjs0+2P0yyejwhIOT9uoSgtoFmDXShNydyjvgzlWFbYFHpEQyiz+mg w/8010GS3FIEPC4l63BY8jaduQyrdt7+F91UuFvadRpw6UTEyo9QHdrXG049j38ZVzmY JLYdgbl1mk62z9gZQGYIZ+8c9lMPWfKSc+u0oH/VFA1Ei2zmrAfIkEZ6+oLH6apkSzZy 1cz5kqEyglTjET8SK1Hn2Uaw95lc13vPeFGu3CfBKwntvLol55TW4ijYCQjXcDRTiRcz 5fNvoUEdtTEqHq71HR8DAoYzxPmnU3C/3EIGE51fR/urE6ThFdHEtP9NiVKY5LXQVcAc UQnQ== X-Gm-Message-State: APjAAAWawljTtLPEIlCbb4cL3KU7T0sPYsn8KElZQF26dZ/oX6P2BjMU XounlsHF2CmX/gprx2oKMBoP4THusuJQOwRJtDz5eg== X-Received: by 2002:a2e:6a18:: with SMTP id f24mr19205946ljc.97.1552358415132; Mon, 11 Mar 2019 19:40:15 -0700 (PDT) MIME-Version: 1.0 References: <1552330521-4276-1-git-send-email-info@metux.net> <1552330521-4276-29-git-send-email-info@metux.net> In-Reply-To: <1552330521-4276-29-git-send-email-info@metux.net> From: Baolin Wang Date: Tue, 12 Mar 2019 10:40:03 +0800 Message-ID: Subject: Re: [PATCH 29/42] drivers: gpio: sprd: use devm_platform_ioremap_resource() To: "Enrico Weigelt, metux IT consult" Cc: LKML , Linus Walleij , Bartosz Golaszewski , andrew@aj.id.au, f.fainelli@gmail.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, hoan@os.amperecomputing.com, Orson Zhai , Chunyan Zhang , keguang.zhang@gmail.com, vz@mleia.com, matthias.bgg@gmail.com, Thierry Reding , Grygorii Strashko , ssantosh@kernel.org, khilman@kernel.org, Robert Jarzmik , Masahiro Yamada , jun.nie@linaro.org, shawnguo@kernel.org, "open list:GPIO SUBSYSTEM" , linux-mips@vger.kernel.org, linux-pwm@vger.kernel.org, linux-omap@vger.kernel.org, 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 Hi, On Tue, 12 Mar 2019 at 02:57, 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 > --- > drivers/gpio/gpio-sprd.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpio/gpio-sprd.c b/drivers/gpio/gpio-sprd.c > index 55072d2..f5c8b3a 100644 > --- a/drivers/gpio/gpio-sprd.c > +++ b/drivers/gpio/gpio-sprd.c > @@ -219,7 +219,6 @@ static int sprd_gpio_probe(struct platform_device *pdev) > { > struct gpio_irq_chip *irq; > struct sprd_gpio *sprd_gpio; > - struct resource *res; > int ret; > > sprd_gpio = devm_kzalloc(&pdev->dev, sizeof(*sprd_gpio), GFP_KERNEL); > @@ -232,8 +231,7 @@ static int sprd_gpio_probe(struct platform_device *pdev) > return sprd_gpio->irq; > } > > - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - sprd_gpio->base = devm_ioremap_resource(&pdev->dev, res); > + sprd_gpio->base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(sprd_gpio->base)) > return PTR_ERR(sprd_gpio->base); > Thanks for your patch. Reviewed-by: Baolin Wang -- Baolin Wang Best Regards