Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1359800imc; Mon, 11 Mar 2019 11:58:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLgxg1+ht/iqCu+zezwHOliKHyqMRsxR94q/ZGHYmVlcNQzALxx+ZJh37ZvPhpdezvAjuA X-Received: by 2002:a17:902:9304:: with SMTP id bc4mr36136307plb.81.1552330716719; Mon, 11 Mar 2019 11:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330716; cv=none; d=google.com; s=arc-20160816; b=nsKgWIv2iPgWQ3A+ezQnkU04B/Eelf7AIV55gagYgD9aAe2ocEZS9Qg5OCHPbv0CkQ h7jEHXOHgJ2STZv+fkpvKWgpxXLI58/kToJfrev/k/jNgn1jiPPYIjnCRensjR3UmrRK GchNFwGQuaVNgOkCefCgurFcJxcvlNT2jES6B9CPSZn73sLmoNUzp6/mlMD0rhT5YH79 7qDgPyQVEaUIOuom+TnRqJha3On1PXI07J/PXyZ1O8IFDMTvBM5P0Rtg+6QqAfhAJQUw 14fldj+odL7gIpqbbPkrUopYL7aeTc2KwhiYp2IygXw+Jj5qq7AfjLVMLrXRpYcM4U89 WENQ== 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=Zv0DLDYM2RPgIa/SJI3+tbCe/uJxMmBqnEojJe0pfLc=; b=IkfsK5MbhYSFs+3/YzP4DgKNWGReiE1h/rnovjazLbN+xfOwHvIt/ARiWY53OhPw/6 y52kEf+x2hI/kTVzjtzsoN4dJgcvEyHcfFPTp3pGCKAFc3JEmfx8VZmRXHn4/HCqjcQC T5IUPqzdkMcd+G5P37E4dZyMVa5TZzLahMmF8/5z27RqMe6AqPF4QKowZrp5Bse2rjX0 Ypdz25HaVaR08NKsEdx3Y0x8Uj6Ft8bS579fO2GbUbke0B/95rPtS5+CBzOBLML/ZnYx lMOZfb7aqk3bXPt+VgXTWyc11noBaUCS/3AfZQhdX7yUfMKi8fre6ciUZLEyJF7p0uZj E9ZQ== 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 d16si5405365pgv.70.2019.03.11.11.58.21; Mon, 11 Mar 2019 11:58:36 -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 S1726977AbfCKS5e (ORCPT + 99 others); Mon, 11 Mar 2019 14:57:34 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:50127 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728385AbfCKS4E (ORCPT ); Mon, 11 Mar 2019 14:56:04 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1ML9i0-1hKXGY0APC-00IADU; Mon, 11 Mar 2019 19:55:48 +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 29/42] drivers: gpio: sprd: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:08 +0100 Message-Id: <1552330521-4276-29-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:jIepoEF32Vhg1X68EZZoNEc5g0QVI+9VwUKDeGu6UjkyRGqYNJW 4pEoBkT2nILhBBtzpTIFsU9kq2ep+TF/B9SxfzJ+gQ5A4RgQULbjKyy1jAeDc+mYNQxZgP7 gU12WzBldGBXx4sXeOhZIi5ayIu7n9yW59/oALt97Hytc2il/teHCk85p+GhB9HZGp++lsa A12eI3GJKfl3WSnqxgkMg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Cq+q8ILWueQ=:Jp4DNGDx0aVThHxxX5/GZY 5cl2aIBzvCAsnfBcgN+kS5rg8xyRjJyUjfB6+sBJw96fq5laG/KU70Q7c+5H6ydbbF1rfWd/S BSYc1G8Tx1cB5182Gimz+CUtjqMQf5YKnkXgSoblKc937FzojRMndHZd7YiKxTWY/GxNRm+2m iMypLkcSukHqlEjD5Y93tsRL4AF1yrMVlXiVlvmJTpv0m094CWy33r0sEJrI/gbmKennSsj9q S97V25qcuAnb/pefM9gfKWpwdfs2JbeER6hHPfkj1AdrxzqSbAQefukNNKnHFPK5AxFVUvjGo wKb1CxiG9DAe6XveI2vlCoVJC93vPrQjZCkG8bsEZZSx1dDxTM8UHScbKLF66GHej1ZySEw+q ScBA437R2wRUcdU8KK7IvlgOs3pKbmJJ2CG5GA0tWDiBkOjNEnetCjUeKu14oaF2u7I+fODZH +bT50qaUJzXnBKIt+U1rYc/17X0hLRSRCvqf82v2f0PssikI7m2L0cPTA6E6bsTqlQAtT483S 3N15cDBqReKizADsFHwq0oSm/K0o2ub9Ju+iXNb/X0jt5Vtxw5IMCPmotXAFadfacPxV5XJBL vhqDaGJutlKYJ7xb+qEidW9lyoOb0GxYlIf43vfX2icckzbrjYcQb+n6S8lvH3jJIlt4+iplc NtIedg9Cfc3GaaG0vEZp7MHB4xANAFBVKIa7P4VGFVWoyE1pYLNFIwuEE8R+7P9/7BmkhCFU5 R2DPl3B+koCuw4WjUCtuI2aYGWq3Ww4VM+XvIQ== 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-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); -- 1.9.1