Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1359160imc; Mon, 11 Mar 2019 11:57:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqybNPGIh9HFYBnss/hHTHUuf96g5lYbnCx9unTnUTfoSKdOQKm1LRRMJHos/OGo0FY648MD X-Received: by 2002:a63:fc62:: with SMTP id r34mr31462024pgk.154.1552330658576; Mon, 11 Mar 2019 11:57:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330658; cv=none; d=google.com; s=arc-20160816; b=z5rYV6PZwxyu5P+HolMvam5aB7X/KVXvEQA7cvjOO5UeKnyq516sBVkVe4snXcNsj0 IEvH//0bBGA7cYLx4EQBH3DG5lRyV1LZTbGhyKfIYJJQXvFOol7w7EV/A7tgU84C4P7L 6XbFSVVR8LBEQ9WZWXCKQYTut3PNtjJkyC6A22z+Q06u8ap/4WRhVrXnIjRtTbQH2Tiq lpKL7XO2fLof/NI+h1vD7J/5L0u+GItoSW8H9ljWMgGmWTZShvLHbAK7NdzUmfF45Rwu RkIBBICGm12pgdtE5MIz7bGbR73cLyB/7+QLsy3qxFb4YBWfTysb1sU57Xt3xg7UYgjO e/QA== 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=RM/wo3xRkebyUXsZxT/peBg6yoBgX4DYaSV2qQB73BI=; b=JO4AgEr4QRlCztI6RhpC/inmdMBqknCuBYMCRFg/Ztl9ITMT01jgbGpjmdJ3n/uJRu 04rzyWNdzHL5tVCWi/xBH9ERV8swfwhyymVZeqB7pEP7diOqIKsU6x7f2pu4sRMtGrxn PKznH0IN1WiahuCOmz+OdEt2zy7oK78LWsMVmnCmePstcnO9MStq6xKIAMidDC65hVVA I166DV017estiqccumUrzqT26Oz41sQcp33km/nANFDmUeYb7N+nJJtcilOXij7fiyn9 pcDLz9GwjPIdPi8UxP49zAwqwVSq6GSgbhVVvNrX+opD8Uyy4u4CMQuloV438tjWGL18 VXJg== 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 p6si5417944pga.151.2019.03.11.11.57.22; Mon, 11 Mar 2019 11:57:38 -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 S1728526AbfCKS4j (ORCPT + 99 others); Mon, 11 Mar 2019 14:56:39 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:46113 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728460AbfCKS4O (ORCPT ); Mon, 11 Mar 2019 14:56:14 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N94qX-1gxYJ13YMp-0167Yn; Mon, 11 Mar 2019 19:55:57 +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 40/42] drivers: gpio: zx: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:19 +0100 Message-Id: <1552330521-4276-40-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:YAkTglQbhSJqAuEsdyXD1wZGtSsI9YIhqg0KHmS5lmAjUi7SyYG HwiNamhHRGfiKsGDinE3otdMtDtWQBAD0AipAbGo7tcZ+6OWYGTOU+GrFNqPIJ9ZcaSpF65 jd94NG6oofEQgNdV4JASJVKEvYRLxBOPXhThUCAdKYALqp0eeh/1Lnr78XbjxENv4YEkLNs B7OBpE/7XyfIs/j7wR+PQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ScH89ULCJRg=:O76rsyju9sEOg4m+OmNl+Q wlVBNYNI9ItKnqk4ImvNroW8ESLURTSdI9XWxSBRftrlUGUogBxKGqxNGFEiRkE2yR2yhap9M gDxpPqtED4S0BvBRGu1QBM5CJcxUvfxLEiPAWbrTDSo9f1KYZkCWBCCms2U8Iw8zQjgEGSmER uRRczqWvaj3EXmwNMOjnWKC7VE5mQ3UBgtLJbhOv5PhvjMHP/d3wCmleufJqZWAJL0BK2skWD CcKfIh3F8UVHEcni/8/A9W7pTscNnQDjaFpsRnNeqKt/jIpwBOeguq0JCAYGT7VZQfYKOsYRf 2ir7y2MAiQGFQt28fRp9h7AiHapx8X4pbXuqs6DtA91me18awJLTAIfNJy5rDLXOUd4nS0D2M kebRnB7JDQ6qHdndwL/1SPOv7/YMY2S2wvW6oSyrzDzEa846rvsK6iKjdKdK4vJh3503K3imV +zJU7YMUw2gWvJL9z0JRcvoI0ir4FWDQ1etAPhLZiQTZXS1GJmlni0z4YLyG/wwCunLRT7V68 y4dJOBRtF8fsPaefYY29PoNnZKmB0F3iqpR9pKKtnu5Nn+W+0nQJuQmzo7JhRXuAmMulLd1Xq shc0TnMpCSfI3m3K7KdQ3bJjpmxkjTrIF0TqzQgQcfvYsJvUQENln3CmqnO/IIbOaKwzQfnlW DZYDWb1hBd3p5aVpmq9ib53tqvmz7DohvUgvNuqZkO0YDn2nerQTSkKTR72X6KoJkmIPWdODf uVpXXGPoRsbkTuekr59YR3jyjyROYw8CY40jbQ== 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-zx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-zx.c b/drivers/gpio/gpio-zx.c index 5eacad9..fb92755 100644 --- a/drivers/gpio/gpio-zx.c +++ b/drivers/gpio/gpio-zx.c @@ -218,15 +218,13 @@ static int zx_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct zx_gpio *chip; - struct resource *res; int irq, id, ret; chip = devm_kzalloc(dev, sizeof(*chip), GFP_KERNEL); if (!chip) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - chip->base = devm_ioremap_resource(dev, res); + chip->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(chip->base)) return PTR_ERR(chip->base); -- 1.9.1