Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1360262imc; Mon, 11 Mar 2019 11:59:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqytOtyIU8DcAaoz2pGN8Daf+EBwSdj4lZ4o2wIJcWOqkyCyfFP7JoMvPwURbn3kMutUrgTX X-Received: by 2002:a62:ee03:: with SMTP id e3mr35262140pfi.241.1552330759089; Mon, 11 Mar 2019 11:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330759; cv=none; d=google.com; s=arc-20160816; b=0BdDWkhLTIcJHynUlq+XVpat018KjBIQ1J/MFe2kEbBY/gZBWWp5J7VWb58IRN9N3p 9B4/xhvBZlvg9LTqyq79/JKKUi0OzzAvkLc95lF8ZW4zI+piIE9SBfqUOAnOHp94YGOJ nXIjLROJYkjW2b8E7hPZpVlh0DKKBLxCYvjDzxK4som2HEawyOPgd4DrICXhTqZJnrYa DZ2x90moHr4RfaOOgDi5/LELMYARQg+a36RyrNx9kSMyv6peMbr5rNMPDA69HCDSnD3r D3Uzv/b21KUqUI3S5kve2XDIwNyZKJ+fHC8xwJFy74fSpRjKQKB6LUOLJs/mEN/js3TP JjyQ== 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=E2O8tks/CCJnZXQM9xRd661BhMR8Emm8Zik9jyVjHqc=; b=zDATJIx7XoXdxutdBY2fxRxzoLdAIFU3pQjVb2cpV454GDHHMIPSQLwL5GHqkKM+R5 j0ri5PUaHZQ0PR783mCEHf3MmzsTy9cQeaHvUXYkbJSfjAgmFbQn8NKK3tabunmcqoXb DjR+g9fIReDen3AadNqCMrrOj3bsuvy6n28uJpg6pF0AcX3EwEa0p3stJPgNXZ2brcGt aNorR9BXKi4C59nwGGsnUq7MZCGo5o4l7n8HDuWkQJB7kHG8Fm8CwcM2UmSr709aMA+u pe2TQpb3o7Bo//DVdUOrsX5pggzDqTHDAacCvZdcG5TBrDXjQ0H5JA3IDMNHsGooOJCK rTNw== 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 a11si5481210pff.126.2019.03.11.11.59.02; Mon, 11 Mar 2019 11:59:19 -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 S1728363AbfCKS4A (ORCPT + 99 others); Mon, 11 Mar 2019 14:56:00 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:51787 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728193AbfCKSzu (ORCPT ); Mon, 11 Mar 2019 14:55:50 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1Mc0Aj-1gUtTv38Mp-00dWz3; Mon, 11 Mar 2019 19:55:32 +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 10/42] drivers: gpio: ep93xx: devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:49 +0100 Message-Id: <1552330521-4276-10-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:j8KA/RQH12SWfiyQaOsU0v/qysGKz1aokrGDRUNjcHYUWQXncQW QHQ0rKBC+qB/lirD/U0vETMbCKULs+rBGvdDCb8nw6jYZujZ8deitfBJvX2FQa+/M6b4dpc aLU+VoZks1bheGjJT1dWceOaN8lT+Vgu8OSDbIGRQZlhunRgkMwYqycxpsQReBvvWQ+JJVh Qi8cHUd/u6yvMMGER29dg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:6FQpd0Xlx0c=:PA7OMQRzE0jDOJvfk+liya 0/yYVRkfV/VoTfKW7kQyCLUEKCSr+YJxqsc2FWdxLsrmSUWbNNrpPmIbk+SUao5ilS5xhCaa4 sWwKacCh1oMBGri0wj/TeI6njNSunI0MTPmODvNjGEJfEmC9gjZxGSY9sK90iNMY6th6lTc9u 2Uqwl8vq52lQfzKJ6XRjLSKSfsph731D35lzMcNFajb3KSwbNOFOJhf0qQyohqJQ3CaQfm9u5 jRE0Ob4KEe6do2HQWXEKjleSZMbuRnLBUhZ2vJvwEXR9cSO1gGXdubpF2gsz/uzYSw5qJmWWe IrHXX2mKZYChxYbnSA6DK9YFQ9HK143dtxBQ7gWgY8POTbMmIigRWcwOj2JCJKQVQK1CYUr7Y 000y3KB760ST3z9NUlSyc80du28OSEHyOG8RVp3+B7yJ4eWwNDMi1Vjgy4ILYKUmSFo+i0GpH En6hkjq/HXCxsa1KbGA/rlbBP37IQ7kcKv4JncbWrg3nDCtWtzhYml2xU7ZPv27yDQO1e0Jxy BxIwQoyluGPLrEYbDzgfdLy4ht2DF4vXKxqCi1kqJ83y4QgoTMYTOmoeqN7fqkughj78iEnw7 Iu9kUXeLYjsIQfDUfbq8WyuqBpCAJwODwwBUHviggErvK8tJFjTTuNPb31grfM1MBJhwmj/va 64aVMiYyiTi0XI3MZaSCf336yw6lhHVqhngT6ngno+uGJ/9yuDYSIUnIMM3P6X+Fbaol+jIpp luTKlLpulTCyxao4UKKKefS0l8XNlLcIaeEn8g== 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-ep93xx.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-ep93xx.c b/drivers/gpio/gpio-ep93xx.c index 71728d6..52e9a7b2 100644 --- a/drivers/gpio/gpio-ep93xx.c +++ b/drivers/gpio/gpio-ep93xx.c @@ -393,16 +393,13 @@ static int ep93xx_gpio_add_bank(struct gpio_chip *gc, struct device *dev, static int ep93xx_gpio_probe(struct platform_device *pdev) { struct ep93xx_gpio *epg; - struct resource *res; int i; - struct device *dev = &pdev->dev; - epg = devm_kzalloc(dev, sizeof(*epg), GFP_KERNEL); + epg = devm_kzalloc(&odev->dev, sizeof(*epg), GFP_KERNEL); if (!epg) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - epg->base = devm_ioremap_resource(dev, res); + epg->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(epg->base)) return PTR_ERR(epg->base); -- 1.9.1