Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1360068imc; Mon, 11 Mar 2019 11:59:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwunWEyRL5aztZJbhj4eH7I4Ib/OckQSj2RyA1uz6rFqJV71iFCJf4ubsNj3HtRCUIB578U X-Received: by 2002:a65:40c5:: with SMTP id u5mr30994659pgp.275.1552330741048; Mon, 11 Mar 2019 11:59:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330741; cv=none; d=google.com; s=arc-20160816; b=DrIC6JM2q+d33y9HFjBJ+CLE5E5cBu4mz7kcV7m8AaFr8RVK4C872BQ38U3OVSF4gx PeHR279LrLG3oTJh06YQVujzHodj8292pK5tKpIW1ZNVWvb8ni9BoM4Om/5hE8FKOKo/ NnF9q2Mm5ZhrV9ejwp5Vvw5sCuszat/T2PS0ytzW1uESXvKlGY/XwFhDSRqsJYYySFsB S7V4369ID+sa7YjABbLsLwT5WTh91+JNmbMrjtT0jhCxKZ24eiGreblOLu4f0LyW8ySJ SA7ouBXKyG3AamsVrDkauxAToMbHW49Ft2f5+iXlkM8l2yVdXoEi3PFi++3CXkYOpMZZ 4D6w== 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=RrIN2YESlTR/X44f+D3RqwwAi0hn4YkiPQnTzWnBuG8=; b=oBHoYWkqQpjC7mgSxLGreQT9WvR/sMcUwPggx41VMEaRo47YJ1Ti+T4r4yOEHjnfAG A+mrXq/AHvgoMQnypnIg8KWjSM2qYcQn54lElZt9orJwDFExOkR2AWRt39xqUr9T9505 5I8TWRzBxi6Y+HFOx4OLTYD5F6f+sxi33dbDNHI0RrR7CSgHrmmBUcrGCH6pmlMWLq53 uMmBnxXfHtcRDjSTmGcSHNjdIvmKJ/4MZOhnyGXLvp6MVPMPeTKvNs4X7Iehuvzb33Bk O9JgI2Zl0HLdkTw6zN+Jg3hVAtvbqblQmb8rN0/cOIeLXQ8arttv2iJVrB8auinqR2Zi QO1A== 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 l71si5301125pgd.529.2019.03.11.11.58.45; Mon, 11 Mar 2019 11:59:01 -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 S1728624AbfCKS5r (ORCPT + 99 others); Mon, 11 Mar 2019 14:57:47 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:53683 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728378AbfCKS4E (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 1M9nAB-1h70S31pDh-005rzP; Mon, 11 Mar 2019 19:55:50 +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 32/42] drivers: gpio: tb10x: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:55:11 +0100 Message-Id: <1552330521-4276-32-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:/wgkM/HX0HEMgBvIMBFm2L67vzdkA8Xhh7uiv1GN4Uu2BkhHtGa uHsMy7cTxMg+FUiJF/mfTwL1X3sUgXp2pf8AcxIMW4XtN3TEjOv7PI/P7hW2+eyV5iRHsgi DANZCi6BsUcI1vzScifVv1TNs8BSUc/Ql2ghNzBJVbXgYWYllrIPD3uzYfLgJGBW+Fl8Ahc hnmGFsPuRVCQDWhSKjI1A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Yg6qm3arTig=:w/UhXM4dsXt3gKXuVYrZzL mDSGMw3Q2iW1Pd0+E+Tx2TR7AjCZh3exfSYebtcFRP03DWG8/Gi+g151NU3RlBkho7xvk1M4w D28qAaj/T01kVFHgr8SN5dMSYrcklunqOtvhs1Dh9SWGNcxaraUJj8KEtsF/KVDnQGqbvf8Hi wo33ebib0nHp5HWhr3wFHPmswLT1qfSXXKd6OA78MTeoovtaLOSySwwgseVuusLCNYXyL3OV8 /v/408H48ithyIIT2+T+b50QBPsE9V5yW5hY+MTgsP+irvhuRR0bOZLMmUgH1lq67N3407+Cs b4yg+ysJmY+sbJqNHX1ow9lTw8InKpX3RRDxgySVaNplfCDGfGUYy8H4DpGVlbfNUyTYF00Jl 4I2BW1ay9XLKzgEi8NZdDgIbltJDMxxrzEiOdepqx5tAbNxHUyVAYqhdv7ClthicuCWRTd+bn nZdSHxGIuHmrxHUnFhFuSA1qz+OIRn5w8NJgMBxMzCp2XObCCCh/d+3mGDqahTm4JQcZ0yjLq wXtU26oEBgMU8V6pLOxpEPygOWp+VuSItXvHBWQDX8Z9ZlHhx6eYZ/zuhMar6OsOOx1wXvtci a12Dop3Il064WzBN/51qY0a6lyK0MlSGva5aC/ispSjhmHly+jCHh14alTb+etfFyNc35udrX XP6UoZr8bNyg31LSgZnSSC0cjBpgGS4X3O8Ddh8w8Hn5L63ZgZWqgvGE/o/FIctyFImiqxnAs R/CaUOuSPBR/hKI/fadDrJIdWJAIvAhKOcC2Tw== 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-tb10x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c index d5e5d19..6bbac6c 100644 --- a/drivers/gpio/gpio-tb10x.c +++ b/drivers/gpio/gpio-tb10x.c @@ -120,7 +120,6 @@ static irqreturn_t tb10x_gpio_irq_cascade(int irq, void *data) static int tb10x_gpio_probe(struct platform_device *pdev) { struct tb10x_gpio *tb10x_gpio; - struct resource *mem; struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; int ret = -EBUSY; @@ -136,8 +135,7 @@ static int tb10x_gpio_probe(struct platform_device *pdev) if (tb10x_gpio == NULL) return -ENOMEM; - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - tb10x_gpio->base = devm_ioremap_resource(dev, mem); + tb10x_gpio->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(tb10x_gpio->base)) return PTR_ERR(tb10x_gpio->base); -- 1.9.1