Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1359302imc; Mon, 11 Mar 2019 11:57:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyc3IPQl5dAopDDRryPilOWMiQKgro1sUwudOAbfzsj//SRSdJP2Kzw/VMR3AwfyLQnujcQ X-Received: by 2002:a63:fc64:: with SMTP id r36mr31339581pgk.280.1552330669975; Mon, 11 Mar 2019 11:57:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330669; cv=none; d=google.com; s=arc-20160816; b=D9Sic6niWkDKbp50bpehkmqZ7yr4WO+0OVIeG3RTDZ7cGFJ0eEKRehIm+PYsWjy3VD Sec4ONDfOc/jRmOzMnWhkvLxIgTQHxUf4BNAXimLrAaSbM9jEes3Puv715XQB4ZWSDm+ hZmMqkLna3OsyhJ6fCSlQjoHNBBa71Rj1lIxoGViCG8FbBlhH42l9zLWyNZyiYnJqe1N 7OWArvLP3Y/5OyT3tJimL+XrLF2ykXCebly757d0ei7hE8It6M9olRn6yNydJ2tSE/sy tNQYc+pc9FzB7b246orFM7lUU7P3SKAKuzDLW2DTdNArPgX9XYbyNliKJ66Apqqowcjo XwzQ== 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=8bwKTzinupTPLfRFeJuyNeCqAWntmCQowuWKibbu1fg=; b=n5f+z8qOkLjgU1gW7zhec4AOB/IkGzsEV+efB9GEGg9EZ8NBLA7nI0uDjvKnElVBo/ K6OdgRPvj/v3Ln/ZVI607LfMulukEhJEpp0DvdWCUMNGUKwSppiQTtrpRjzxRCdyIX0A QNgG+UkqRmeb4oqEljzRbCJRFNXeFICLz7n5gnYzHL8RHxTr4gm21ZbZXNN0NU/PYF+4 htODF4+9cAtBtXTnVOk8ELHCzlrMMLwU49G1Na+Y1walB6IDJw0ms57ixwY74c+So/Ci Ro7TxD4I0j4hsPO/OC/BJ7/ci3Rmq+yIsZxOOPA7fyPW683/FVPScaFbr80dQX+UgTQx WfpA== 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 t23si5801671pfa.64.2019.03.11.11.57.34; Mon, 11 Mar 2019 11:57:49 -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 S1727891AbfCKS4u (ORCPT + 99 others); Mon, 11 Mar 2019 14:56:50 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:42359 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728445AbfCKS4L (ORCPT ); Mon, 11 Mar 2019 14:56:11 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MFslN-1hHPVL0DXD-00HRmT; Mon, 11 Mar 2019 19:55:56 +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 39/42] drivers: gpio: xgene-sb: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:18 +0100 Message-Id: <1552330521-4276-39-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:44hLPQprcZhl19k8eWMXiORgL9JqXdXz5OKfvnKXBBg3KSOeQLX q3QOipU+5xI74ah7dd8z+ev8KhyEDG/X4ZhqPBUSD73iyHbLr7LICnLhgVS5qfefo2nk43O pzEQCF1yFYJ3YWhErEJP/XgXM75RVHF08wsqbJV/MhtETAghRuFsULBE2/Z+QbmGEMGEIWb FASo1Z3lf7Eh0e1PxsVzQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:wMUU8FVMTmo=:x6mUZFGSjJnbhjJi28xOps aReX3rYLTDZ1VIdnBGE9p6ei+RgUnZ1iTg7igjsJsFJQnph3ic1NmaHxUGcDUejlx81jQBoeZ qp18tvMSt11QFV7iu9QRKdwO09S7ZeHSmZeawHSPkiiVo48gQ1FrafHoYbdMI3fj4WV2u0QZB zTimumLKncGKXba0sfYH3wRihIeirf5w3ZPsWCDHe6TLdJpva4fW2vaTCrg8uMXlYjBkmw/+M 5/2Ht7NJiP/bYduUK5ixCCOoqtujn82+RYcItNmIj+A6Iv2bH3WlMm8uB8LdkBbLlSqQ4SP+I oipTJDroGC7vwSvuTmISWUMD6K0CXlCMZZNlzQ4P1tvQZQNRnMMwrqRWvahYPRmVSpa5iMxhA NX3PzQWmFggHFiZDEKu7b53m1LPvVrA6PhlaXgFbDc460+17iECNdTFX5DphiaELh639BgkGh /AJiMLcI/NWDHwp4HhZHTyGkCj1eiwdDRiEfXmzZry/gaDVzUmi8UNTxc5balXV2OZBuC9UkD kg2CB07R5K/X8Vz/648O98LzywnimJQPSqpH+kvt+ro6SA4uJinG0SvwItk2iEWGvRDGRtDdg 5xhXEzhKcTvR6Z2LPiyvdcLf8V2OBpwsYAQnQzAUH7JwZbNbgh36dXuYPvU68mGGJd7AlK4zl mk9wgtuCdj16ptwEMJmv8HkbBX2Uy8yvkFPgbihcY3cbmsyGAo3lUxyOCRdCRRwe8AaUcdMzj PaPDxwfFy8P/KkLu4K48TmawtXL+q9p/1nK8Zw== 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-xgene-sb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-xgene-sb.c b/drivers/gpio/gpio-xgene-sb.c index 2eb76f3..641a051 100644 --- a/drivers/gpio/gpio-xgene-sb.c +++ b/drivers/gpio/gpio-xgene-sb.c @@ -229,7 +229,6 @@ static int xgene_gpio_sb_probe(struct platform_device *pdev) { struct xgene_gpio_sb *priv; int ret; - struct resource *res; void __iomem *regs; struct irq_domain *parent_domain = NULL; u32 val32; @@ -238,8 +237,7 @@ static int xgene_gpio_sb_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(&pdev->dev, res); + regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(regs)) return PTR_ERR(regs); -- 1.9.1