Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1361095imc; Mon, 11 Mar 2019 12:00:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyj/5Bc4bJvTQ8paNey2GhVw8FGj5WwbtfIHXV+oBcgh3bBggFr87vRDvAnQx/oI/ZXZYef X-Received: by 2002:a17:902:2a6b:: with SMTP id i98mr35581703plb.153.1552330827044; Mon, 11 Mar 2019 12:00:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330827; cv=none; d=google.com; s=arc-20160816; b=F/P+T/yi732TYO1uXdJP6aRF9Aq41f30eURh/IKbhREWsM0kxfWYA2th6BJVibhdXG ur2LWdexrMEojQEVDgB0Y4OUY1S+kKf0ZG0vcLlSMgCE63Mx6GDyao82x2oaCIR2tvZ6 9tMTItjp2VY+vjH9YoWX43TnqL70nsSZgVGNCui14Q/zOCsew0Q5x99d6Uy1NT+A3YDb AMI87CZTdaHjUeqto0p7QMJPbwx4peYbCcQcOWWByp7ajYSjs+x/31fx+7bky0pTmuW/ VuKEVYLONgOBLd1kKXWfmTTbRgX9+9XLo6/WkKTfQIpZ9pvGMPmoLpsJC/ZGqih4EaQx e4nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=Wgxza4IgDf0PT+YMrk/vubZdIK5xabR8JqkeMv1w6aU=; b=T3E3FEdCsliAZCIASJul0ogQXrGZvm6BZTGpVKb2cj94PHtlHYShs+4Z++GHQ/frhs N01dmUZgFyD+HPRIRpNMOcHwgrdj2xM4fQy4RwEJcg2jEjbMlK4l+wE0LI+xFWJ59WmG g4lnE3M83GtBDa3eYApvOT/sgZXacsPowmJFA/1WPeFlQunF2EWSqBszviLcE0C42j2G QhoDVWLlaCdf59R2NPjuS/1q/H+r0bCrtGNKjS26PIqlIaazWMtcKSoAPFfyuzvss4aM GW29v2xQsURrhnn9NZpwKDTk/TpU/UBAnFnAm68OHZ8z8D3OnG/dbrodOK9EjIoFtcK1 Drrw== 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 i29si2487704pgi.95.2019.03.11.12.00.11; Mon, 11 Mar 2019 12:00:27 -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 S1727008AbfCKS7P (ORCPT + 99 others); Mon, 11 Mar 2019 14:59:15 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:55979 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728293AbfCKSzz (ORCPT ); Mon, 11 Mar 2019 14:55:55 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MaIGB-1hXRIF1bzZ-00WEZv; Mon, 11 Mar 2019 19:55:38 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, bgolaszewski@baylibre.com, andrew@aj.id.au, f.fainelli@gmail.com, sbranden@broadcom.com, bcm-kernel-feedback-list@broadcom.com, hoan@os.amperecomputing.com, orsonzhai@gmail.com, baolin.wang@linaro.org, zhang.lyra@gmail.com, keguang.zhang@gmail.com, vz@mleia.com, matthias.bgg@gmail.com, thierry.reding@gmail.com, grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, robert.jarzmik@free.fr, yamada.masahiro@socionext.com, jun.nie@linaro.org, shawnguo@kernel.org, linux-gpio@vger.kernel.org, linux-mips@vger.kernel.org, linux-pwm@vger.kernel.org, linux-omap@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH 17/42] drivers: gpio: loongon1: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:56 +0100 Message-Id: <1552330521-4276-17-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1552330521-4276-1-git-send-email-info@metux.net> References: <1552330521-4276-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:GYCjApWXM9X6oomqeco3SxjEqexphqgfJRxJb4zuI3F7kytdaLT sWgkfZKB+674kMJIXjS2HCUyjI+xiWZEPjI4t9L/PLvv2LNPJqAL6Z64yhGGMV9y8Qgvnw5 umKQVfo2oOcSnfIAgQ13+BxAsYz0Nlqx5+RKXRyr2P49U3ml/n+sbJfH7R+QxWTn5InWWVu 4sxQxIVFxIvh9zIkEDZ3g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ImiAVr0YANA=:UjDYkpismkxisr0fv5Lm6d YeUHiZHlTcVJ4l/864P9dI/SbFPZBhVP6fN/d/6VBSsHcQITVTCbVJ09OPpU7zEK7zBCNux0u A2N30PmVXKNT2ogrQp5xl9YHzi7yW1T6d5ur5ziffu0kELxsRUBIScPwNLPhfBQAtjT1YAL5s snddDuIhW4e22yFSMaFJfuzjnDx2s6y7vNPQWETkDq2iDX0LsmNv9deozPelooiEzSo6hHME7 4IwuiShjCU4QmpiViZZKl15u+nwIdyArxFZlPi+YqStbcKBBKhp2lmKiNKVDprgDhnUPSE4N6 czL85GVEn5FDp/b8cORUk10OrTEUlOVTXk/wcYDbomR4uGnkmK6aQswcDkvkTDxxxFNm4bTsn 5Y1HOJt3C2LquPLouPjmh3tlg7Ps8e3E1Ti0d++83SidVSkBsAEJk3Jv/lBUliIzVCspqRFsE 1oKnDgYI3fUrIn0JGni2bUDVbjHwVGbP4w0jjAczWyCBejJKKzPw1jCpHsCDVZbIroN/I6/mD EY7Gr23Ix+a2DQW6VKsTetc5105eoCfpeA5Tx1KGStTq8Y4DFdS08jQ44mob5K5hursrACVsU t/dpA7GXwB8d/oEcqarjqJ66wbKKlwVadHNUMRzW6UIt+w9r2UGXMF8mdWJ+WW9y3QLE5LXp+ Lhi8UabIdhQL7GygQo5/ohEG+XGBipJKzf1azehLLMTHLuClCsmhW0GjQlSdQxHjO4ORMsoqu DV7WA1l19NDnn2FAtNvuMWFWaRb2cLibQQiuxg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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-loongson1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-loongson1.c b/drivers/gpio/gpio-loongson1.c index fca84cc..1b1ee94 100644 --- a/drivers/gpio/gpio-loongson1.c +++ b/drivers/gpio/gpio-loongson1.c @@ -47,15 +47,13 @@ static int ls1x_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct gpio_chip *gc; - struct resource *res; int ret; gc = devm_kzalloc(dev, sizeof(*gc), GFP_KERNEL); if (!gc) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gpio_reg_base = devm_ioremap_resource(dev, res); + gpio_reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(gpio_reg_base)) return PTR_ERR(gpio_reg_base); -- 1.9.1