Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1362576imc; Mon, 11 Mar 2019 12:02:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi7opDUiGtMmo3uxUqvTaYjEjI6vkAJglGBJFACoQsuQiNJ6vxZHGLAvaUZIrdB0BAm6UM X-Received: by 2002:a63:f843:: with SMTP id v3mr3209162pgj.25.1552330927182; Mon, 11 Mar 2019 12:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330927; cv=none; d=google.com; s=arc-20160816; b=epS04fLc4T8Qw1n9BLlsQLUX/oBqZvRwG4Bf20cfIroSOPET7HEkZzk9/CIodk6IvV tez8jVdz3eps2o9Qo1L90aX6Z47kBzcVRdeo/YjM+kG6OeQjMEiiIy8akYvUGwZNxh+u xTIAwCEGfFEh5ANwO5I2q35fbmIAaRtqtMM235kkjQs9SMF4XQL/LWoRftN9WgsgEuhd JwJzUtYSlQ475Pzt6A69EhrcwjAWsXiCwdknpHErpX+vVLt5c8AWyKXl8A+8nFn+MZ/J 1CPaAWPRDjnHSMDhFsrh3ozbc8LyuO0/5nyri8Kzpj5eLQLMVTZJy5EDqVWmZ49c4ury Qhbw== 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=AYRNCGWcICjSJa5R27buRVnz04g5Qx3ajzMeBsujghk=; b=jiYzh52nOa+LDHI3UB/3tn/wp/kpO7SDJ58DC8NZMlpW1Wjl6+Souu/UMDy1zHSPMy 9/zjC9kqsarH8jhpffitMnXoR9AhmypGmCMgoLmXSNvgescxffp6ULoYrqVH3vP3LRG6 ZKPvegm1WiYD1WRUBRnel89M27KZ3ZFyz0b8wo5C29yz9mR+i6MfNQtrrtBvy7Q7qbzg fmhJeW3YGxiVyeqBHTpIDA4pAGdPOYJqXfKqFMMzls7AuttBiGSjQFsg6xBEBg/DwQck tpUnc87IJ4hlIeD1SNcYmHfcaTE8EiCWJh7NPcmJURgiKOym51YSq1alombd7MbT5OWu C6ew== 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 t63si5489845pgd.367.2019.03.11.12.01.51; Mon, 11 Mar 2019 12:02:07 -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 S1728693AbfCKS7c (ORCPT + 99 others); Mon, 11 Mar 2019 14:59:32 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:46881 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728250AbfCKSzw (ORCPT ); Mon, 11 Mar 2019 14:55:52 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MXpQA-1hZMAT2LkK-00Y9Jq; Mon, 11 Mar 2019 19:55:33 +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 11/42] drivers: gpio: ftgpio010: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:50 +0100 Message-Id: <1552330521-4276-11-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:IF4aRbk+3A0wj1tjs1c625xoyYIRxtMqNhxJ+UzO+XrC4X/MPKO pUUVJhjvTnnD1H1qlM2mU6F1MruHwUJR0nQrd/NpqvzvVpsA9LLuLY24YEIucnvYCh6wCHG t1pMLcd5dpXpH3bx6duS9yDil1vdlqCetD4G/kt9kSWyeZGAT+WsZWPtTe+O6u2qM2F9/6k 1x1erEkR5MH5zwSOV4W1A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:jgzx7diTwuY=:Nt3ZNiDvI2PGiVH7YJcRYZ irUDJVJTwCqHcaSV4IylWkivz4M54Ug+qzgMeuP+MPjfYkGH5lL6Ijkmq2eVi+cTlcNfioNW/ 3vlpRcIdnVAa6UaXxk2UHpjpLY+fBtrpuWknnS208omRyL3UYK3KlVtPyyuvQtGOxd8HPPnCB ydvIOGOtkWoFlp/WmlnYPt39Z+wBjFf1GB7xmoCZxE+Fhn/e//fC3wdczb3LKa6KrrvhgtQ1p rzPpnjAUDgSVGeNJEbZGGvJSiDiW6tcZN9Pvvrr3wSKMhAtd+OM7W3FQBWEg3FFQ+AdfOSHrZ 6NEpck99EiI7ZW5PGs8pkwvZ5bzMZQQF25UZvIy2PTX0TBvChdtKm8gxn08PISDZUtrVV3giK 5nrlNRg46pgewJ4X/Ap+hnK4YbMyenmLZDmFAF7VDbwPf5WDG8ho+YTIzconQVQOHDrRLJEFf o0CG7yRYQ+UYjdEPtnj8gwxgKi9HJ2fn94ejlYTUN2leaa2I5e0qKcWqezXQ/3mKsWZwtOfY1 FsfJEuYtK04TsShyip8he4CFfvBxx84NvhPZqldziVi8sMeLo/tksiBesb+q7TC8zEv+Z2fF5 EMq/LDEezbxbiRzdjea+B5iczBP/lHAdcRX6OTcsKDkS178Naq5Jeh4VrlaIFEIev8Ck1aW9t eu2wq0AcaJ4JFbPY1ngDAHlhxpW/4uKMf5I6S6HqxsYJS6/s27mYsJipHa56yxh5XYtN9KDpJ d4UBAkw3fdBLEYN5OcRJ8v/IRws/zWu+a9/dTQ== 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-ftgpio010.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-ftgpio010.c b/drivers/gpio/gpio-ftgpio010.c index 45fe125..8ff8ce2 100644 --- a/drivers/gpio/gpio-ftgpio010.c +++ b/drivers/gpio/gpio-ftgpio010.c @@ -225,7 +225,6 @@ static int ftgpio_gpio_set_config(struct gpio_chip *gc, unsigned int offset, static int ftgpio_gpio_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - struct resource *res; struct ftgpio_gpio *g; int irq; int ret; @@ -236,8 +235,7 @@ static int ftgpio_gpio_probe(struct platform_device *pdev) g->dev = dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - g->base = devm_ioremap_resource(dev, res); + g->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(g->base)) return PTR_ERR(g->base); -- 1.9.1