Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1397503imc; Mon, 11 Mar 2019 12:52:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzidS0cCRjXVXbaxM6n3b2qd+0JbHFFruWhqYgtOkwNmQS9gWw1nlQoD+2X0KgaBsxjyexc X-Received: by 2002:a17:902:1125:: with SMTP id d34mr35877464pla.75.1552333952894; Mon, 11 Mar 2019 12:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552333952; cv=none; d=google.com; s=arc-20160816; b=Ly5kx0H72TaziRjkx/LWpxMn5JjbxWyNw7iCVpDKVoZEfiPvhfD2v9hHZY6BmRKeCB PJEr1Tx8x5oSlkttIN0vYjbkFn+uBq3DNGhNndEtJ09g0WNSsFLTLsB/ihiE8DddZQa6 /jttKqKk5mVdj2ZvMf9lpjHRgvtTvew/869EMLrPQXwY7/mRIaPlm1qvh0JHTeU7wuHy t34rxpqMbe2luOnZUcxiruxpS8DrQvfaBVVajO/LzwWzvGCo0jwfhn5zUAVpHKpBeP79 i9ThCND+1aba73mmvK0ditHgHYMk7ZbLHChcXG3gLsjoxIOOOW+oTnnXEtxpmlWDn7dA UMiw== 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=zo6JwoYuC7pIwMTBfes+Oc20afDN/OZ8eP5u9GAI+t0=; b=bcbCfys3ZvSd34eSzVN5z1PtyKDPQaKsLe21IzIz4rskhEoxQdyAmssjQLHNC6T/4B oQ5RWgryeSa5ZfXhvd+8xt5BVuWUTbqc3AyEDUcyBEO1fWHZIS4+m6gn+ROXLkbLwJAq lWgJrSko0aE4+uZnijyR9+x+6ydkFxVi6gmeVI8qK0D6xEdLRTRYzpoz9d3ymbo8e/6g 9CIqrEhvem+JVOtZnHp7o8NNOb21h5rnq5R3ZRxZOMCw2wMqsJhfJUT5gMycx0SPobiW soxqwLOlM0Ufb7fyXI47D6xkojSH2WrIlk/5GPedALgcmLDelX5pdeTxGUJliM454tWp hFkw== 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 x61si6172490plb.197.2019.03.11.12.52.17; Mon, 11 Mar 2019 12:52:32 -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 S1728203AbfCKTuN (ORCPT + 99 others); Mon, 11 Mar 2019 15:50:13 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:45917 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727818AbfCKTuN (ORCPT ); Mon, 11 Mar 2019 15:50:13 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M7ehh-1h9BZ40QmL-0085cE; Mon, 11 Mar 2019 20:50:07 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: grygorii.strashko@ti.com, ssantosh@kernel.org, khilman@kernel.org, linus.walleij@linaro.org, bgolaszewski@baylibre.com, linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org Subject: [PATCH] drivers: gpio: omap: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 20:50:05 +0100 Message-Id: <1552333805-23235-1-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: References: X-Provags-ID: V03:K1:UO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/OPqVMlo9iiWAYkZM87jv py9VAsRhpkyVVDmHUsCwDphMMiGgsFWSpZxRUjxNX08dwwa90TuK+a12tVdBELRcrCRZA0ifi nYRMMA7rP6sl9an/zPiHZHVcfZov+p4wffYwQlXNGoKeORU9LYqlp9WwHaWF/Bltk6Qg2RftC fNmifc7ls8w== 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-omap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 7f33024..ce6e67a 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -1289,7 +1289,6 @@ static int omap_gpio_probe(struct platform_device *pdev) struct device_node *node = dev->of_node; const struct of_device_id *match; const struct omap_gpio_platform_data *pdata; - struct resource *res; struct gpio_bank *bank; struct irq_chip *irqc; int ret; @@ -1375,8 +1374,7 @@ static int omap_gpio_probe(struct platform_device *pdev) raw_spin_lock_init(&bank->wa_lock); /* Static mapping, never released */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - bank->base = devm_ioremap_resource(dev, res); + bank->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(bank->base)) { return PTR_ERR(bank->base); } -- 1.9.1