Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1360952imc; Mon, 11 Mar 2019 12:00:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPpYhTqK7j3FOD3obWYTcwMc8kOXUfosjKK9Q5twCLk0n3DU4t1dypQtjQfQe1kvOZ2Zh/ X-Received: by 2002:a17:902:40d:: with SMTP id 13mr33656322ple.276.1552330816312; Mon, 11 Mar 2019 12:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330816; cv=none; d=google.com; s=arc-20160816; b=UsXzhg314AtY6HYnt09gJy+XyniFct0VTTwA7GirNfwrtL4z5hlh4MgVr6B+D6B9NZ 3VcU+N3HsodcYbNYQsjogqMwnPhSUwp5AVujp8PPX/w3MvYHfv2q97c5YQXgzTAyQp2T YS4go4pKk8nsDwhdHjURo/QB21w+U7SAQ5T6FKhBJfgBDvB6xWHkNCQOsDh7RZi7AMi0 hwArdW2kMX5Q23asU2GQg8K/fsplFve7N8zTwGgNjTLNF09KNZ21IWgoTenr0/Dmfjvk 4JFaFb8UwFNn8BPK7bShbCIpDGtWt9nO6M6Mu9lziv0tOKh7Ni2Y4CkzClST8hle69/f 8NzA== 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=EeSXi7gxlpl3Okb1EvKYxM/6SIIZkbgoAVZt7kbb4Hw=; b=X4n6ECxJW8SH2vTEV9uwKcW7gri/QaQWisSg7litUmRgSFkREutiqVqXQc+W7xW//p ebfYBVKA3BIHwTIQRXemWQIqN2Y+df0+y2SPb2DlAMRKbKlpkYo4dHARR+QALQGb8xyT UtnC29qCYvdNSYNblbk1JLD3cT1JydmuqhxDUEQ6t6nSt8Gi3Swxp4aBWhk+G6PcjjYi qHfwfontYG6+OSIEoYV6G1kveIvfnDrNSctj8ZOuG08PxbRzlBFMzboG/wWRdNYTHV/h vBxVZGivt6x1mO18BwlYzGwwMgnFJeFkxrtzMv/p1jz6bJlY1/Deg7jbswbQUuepRKz/ A3mw== 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 z20si3650500plo.392.2019.03.11.11.59.59; Mon, 11 Mar 2019 12:00:16 -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 S1728470AbfCKS7B (ORCPT + 99 others); Mon, 11 Mar 2019 14:59:01 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:41297 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728325AbfCKSz6 (ORCPT ); Mon, 11 Mar 2019 14:55:58 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mleo0-1gcIWs3IYs-00inmu; Mon, 11 Mar 2019 19:55:40 +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 20/42] drivers: gpio: mt7621: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:59 +0100 Message-Id: <1552330521-4276-20-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:nwyqyqA9VL/K+WhaUHLAmkhPztl9JJ5XmyOE0xfRuw/LBL9XuWH 5PZzrddYvMHqkth0uOZJDx3ULJLS3fNI9GxBaQ9rizswsiuvOY9e7Qm19lghpf7AuGSqcuR PpZUSigDJBCch9qMXLJYX4LNajiNbBU/Oj1LJcQQr36kMKGoRgEmlgQBHcfaYc0YO1SUmNa lC0Dp94560sqeaxffxlrQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:qnqyLbMetcs=:/wtSDYrCdKoqJ9YGH1dVv2 YzIkT7Q1Y2izn9Mrbu5F5uoTFXUdiSYqqBbxGJmZWGE+o4Va+04b3JTC+38VJOQHjG826t4bh obyYmkncBNm5Ln1N1lYQ3AbCjAg3zHzKN3ImfMsdSZUachsXivUa8ZeTh6kWba2LjeBRZ8gcc P7zphK67JKETTiC70Hp1azbsek7CcKJfOQsLe2Lu/0b5mWJyFxEstj63NM+s4jUPLbKAe7+xT 8SfYnMjT3kUclkJBpxkBBgslFO8rqpWlPe2Z9Yrnwbmj8A3Su1/quHt37su/rl5KDfRlpY58d Agw/eetqMIA9NZUBUZAPKeHhKRttwiPPoY9MZ/m7zvXoLUcrw2NtbHYmRR5N7ZYA+jaiAU2rP hw6EIOTHv3nzoxJkMGHNn9CR/S6nnrbU7rAHCgNKFdEMnqXW25KL4/qVv4A/GlJbGjZ3GSc2n dJjWvN4YMBCwjyfk2edde2rJJvrMHLZbOYVHQ9lXg66QrlWmbifJ7i5jGz0BXgHTiNriim7mB B/iUdmWXpN1ORhfHVaK+zK7u0HcHE05CKuJFnLPcV/RgRgRqU8G6KjC1sVUBNuVm6i/+5D1OK tmOAj/PF4m8XF4cApyKIvqq9FReqp+xwHY37NA4FqUH98LlS5XwAN6Ie9n/65/6eU7Et6q6mW sCKuwytpF9YBhxCQ8bjwF1MFYnAR8JLDZpgdsLdQdS0KYkSphHVAFhRMtLVrPygRA/AKQr58y Bfjfw+XWhyFLTcMUftdwecoY4HgZxOuqh5EQcg== 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-mt7621.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-mt7621.c b/drivers/gpio/gpio-mt7621.c index 74401e0..79654fb 100644 --- a/drivers/gpio/gpio-mt7621.c +++ b/drivers/gpio/gpio-mt7621.c @@ -293,7 +293,6 @@ struct mtk { static int mediatek_gpio_probe(struct platform_device *pdev) { - struct resource *res = platform_get_resource(pdev, IORESOURCE_MEM, 0); struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; struct mtk *mtk; @@ -304,7 +303,7 @@ struct mtk { if (!mtk) return -ENOMEM; - mtk->base = devm_ioremap_resource(dev, res); + mtk->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mtk->base)) return PTR_ERR(mtk->base); -- 1.9.1