Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1395416imc; Mon, 11 Mar 2019 12:49:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqya75wTLPFXLO243ALPTorigbTLwUicVtORyRtTFdcwYHZY9KNGUGOnV/9AL9Su7RR+TPEa X-Received: by 2002:a62:2f81:: with SMTP id v123mr34059684pfv.156.1552333754948; Mon, 11 Mar 2019 12:49:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552333754; cv=none; d=google.com; s=arc-20160816; b=Cu1FM/Vfvy3QT8iLL6oCQ8Wb8qNTsS6G6zZxT2RS9OYwKRCt8UfWKNo7ekY7R3XMiY fZWN9zSXlXci1ehbaV1pwI9MbOn+al1Cw+4MEg8Ew0OG1BfvwoPA8fOf9K4fPR+jzMNA 72iaOgzNtS49eh6MMaetRZX2kG7eNZ4VN35y5onj9cnBstMyPqsrApPARuNB8rispu0R fzBlW1mGZnu//wSYBeUwfc0Cetk9yMdNUUQaqsVLZWmisbCZOVLoraiqacxLVSRjgogm tDBDS+32cgDp+YsBr7O7gKO2dDpVMAKKnk9hfzcNDguTrZ4ik5Ydw8n+IC5JQrEiwoMd 1Usg== 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=9m7IaX/F9tCyctLZXrE3BSi2dlgyeH9Md7M0OnWcFl0=; b=zd9D5Srfs6ZEchHZKYpH4oZfFNgqbpl0Kq58/sxPTxZirhxxPr/XQQb4HAXrknQFJx ShRv/1EkMmP4OMVOFKaZsu7gB9mKrVVv33izqJSD1UQ6lS7BqKeznzLtIAinohFeG2gG IFBnW2k2n+mqBWjOaLm2O2kMqx69E/tRod11lM7sSKT58WpI1fWPjbPBMmPcKJuaV0tF ALwGezCKayEDZ/7ax9LiZAzC12VWlhK6a4fhZnHgQv70VjciB199De5B2J3ckZGlCbzi pJN0FNyySqfqMpu+wDHlo71aAm7UEgSbgZowbImlcS1Cl7VQjLYDSK+UrU7+TwbXkW0n 0RTA== 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 i15si5666064pfa.270.2019.03.11.12.48.58; Mon, 11 Mar 2019 12:49:14 -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 S1727868AbfCKTsZ (ORCPT + 99 others); Mon, 11 Mar 2019 15:48:25 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:36287 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727027AbfCKTsZ (ORCPT ); Mon, 11 Mar 2019 15:48:25 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MatZt-1gW0hZ3vFT-00cRJq; Mon, 11 Mar 2019 20:48:23 +0100 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, bgolaszewski@baylibre.com, linux-gpio@vger.kernel.org Subject: [PATCH] drivers: gpio: octeon: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 20:48:21 +0100 Message-Id: <1552333701-22712-1-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1552330521-4276-23-git-send-email-info@metux.net> References: <1552330521-4276-23-git-send-email-info@metux.net> X-Provags-ID: V03:K1:O7zy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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-octeon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-octeon.c b/drivers/gpio/gpio-octeon.c index 1b19c88..afb0e8a 100644 --- a/drivers/gpio/gpio-octeon.c +++ b/drivers/gpio/gpio-octeon.c @@ -82,7 +82,6 @@ static int octeon_gpio_probe(struct platform_device *pdev) { struct octeon_gpio *gpio; struct gpio_chip *chip; - struct resource *res_mem; void __iomem *reg_base; int err = 0; @@ -91,8 +90,7 @@ static int octeon_gpio_probe(struct platform_device *pdev) return -ENOMEM; chip = &gpio->chip; - res_mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reg_base = devm_ioremap_resource(&pdev->dev, res_mem); + reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(reg_base)) return PTR_ERR(reg_base); -- 1.9.1