Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1362403imc; Mon, 11 Mar 2019 12:01:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1VduYcG57J8ksNmWpJFVuPD66rRTijTx73ORzKI5XVaiwhzOpbXDd1xR4/0cpiXL6irRv X-Received: by 2002:a65:6210:: with SMTP id d16mr17702349pgv.189.1552330914069; Mon, 11 Mar 2019 12:01:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552330914; cv=none; d=google.com; s=arc-20160816; b=Qjh4cklDByn0NGxC4Ao7I8AJpMQTe12Wc+3K+cks9subgnJX11W1Wmm0q3lKPzgVPY GmTyMFp8M7T45He1R2NytUGn2QWkM2Q7amYqa4+6R4HEzY8RxvBdgRjgEdhar+3OenYF 4/3GBfbEXUE9EEfParN2dEP8q8Ia7JJoWvQNu4dr6tWrRvaiNc+Qz9w2IxeOI5P2AHek j1k0mNhgIMHrzpR3WwQ2JGROMT/BUz2Kb2OcpFEkdfMJhS+Lw2dU9DcAeKo4RVBIUQxR eZRvSesI6vM9QC89YACJxXJY7lkssLscqH062nwl/4tEVWmins0OCJNg51qgFk7JtYPx ok9g== 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=S6lHwrOvbMSZ50RhwEjCZfCZOnVUribWjnzDqvLgwUA=; b=lIWpzo3o4jEZZhkVbjzxqMDpngxWCy98DvfHrWtX1B/xQXzHDqQlpJRR73M7edlE29 fzbrw/BuVqopkQLvNDHdVhWtxo8Ihp9FWDmg4crCbeE7G0Z0WlaB9OvKif063MWD8JMn CKIaRUZTyG8kYE0Izk1JY7XU2zSx9dPkEjVLAqSF2W2BK8YkhwoJjLVOfhJWrOeOXNCs GrVDHFoKxq6r19wHEUirElAzb9lGXDZEdzpd9WI3MRDuTJ5EF61eLe94HcJG2qg6FBBh oKXBx3FdSXCMBOXw1Ei2Zq+qZqYFQW/0WsStwdU85nSpd/6F7+hDiFDk7tW48R6PlQ+P b9MQ== 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 z8si5160870pgp.527.2019.03.11.12.01.38; Mon, 11 Mar 2019 12:01:54 -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 S1728616AbfCKS7X (ORCPT + 99 others); Mon, 11 Mar 2019 14:59:23 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:34513 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728272AbfCKSzx (ORCPT ); Mon, 11 Mar 2019 14:55:53 -0400 Received: from orion.localdomain ([95.115.159.19]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MOiU5-1hQJUd3HoN-00Q8xd; Mon, 11 Mar 2019 19:55:36 +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 15/42] drivers: gpio: janz-ttl: use devm_platform_ioremap_resource() Date: Mon, 11 Mar 2019 19:54:54 +0100 Message-Id: <1552330521-4276-15-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:ve+tfx0VASc3CTP5uMOzIY8ePUZgihkSjeCOvuvAjT8dkoVTiRm VUi+BG6kbJMrxoBeQLrQr1J03ad0hJiTiE8vuZnHNJ2SODG8GPESBKAtWn0Uj+DIHN0RoMm vuVNuZu/AjPgQB39tKGcUujjJqNDpzwjpquZv+l25efUXAOALTbp4SpTiVQtjg2o34jSdPu rJtVubtlLO/8/ELLJsGeg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Nt2KbzM0omc=:Zqqi7tRCkx6cMUo4bqynKL f+zLOzgaSUeZqWpK+vntExIfoMW9b8R/BhbQbF5t/395nRp006frrm0IovMaEct+Q4UsUXHF0 VemDjZVAAdElU0YGFMwZQ1QAp8M4I5w0ITdYHj+nb+FTZRH1RUhXsQ6D9q4OaPtTnXZFPmOWz CdcH3B5TPNibam12uci0TPQIQg7HVbnagsbFn/dLJth/DpVV/5MVFGbSxQMPSAXX4sqvUXXWp d2fltZEaR+CGIAbGI10kuL28WFp30uvyrdrvqIuc1qDDzMZI6i5raU2mc2D0GD8B4Kn6OyJLl AvEXokuDHaq3FDc4hZSGpGCfg9diiL3/597xijqJGWe1SVdvX0ePFsxU8m1umHp522rkrIt6x 5Lu8UVNq+YU7tC0IfW9WtXIayrA24ecRh+VrbS6rsmcC/LfWEmOb9yQATz8j/wqQDI3HQAcii h50R+PfkkxfdlOSnFap6Dd9Dyo62ZJ3lhzD47A20JwUwKlm94wdkOh5ls2gQ9XLeUS30syo66 dHsMYAtGH4OhFPbKRmDaugLpForHKr1w9avpCrbV4Pzb+qL36pAzoTtS+/stggjNpexHIOqAB 5u0urf8KADob7BL3rfJPhd+JcntwMmcWM8Imx7kc8K/dcl8zQThd9FmpEAU/yUXXv+pc9kaXf ZFZNmukW2sSEO6o0tQKgn0Z1MwpD9Fibit4iLvQ3pVASBvQSC/VoSZs0d3A19Wb+9Cs3waoBZ fKNW2YQwB9nRfPktORVkZmi/sPklO/xhH0nAVA== 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-janz-ttl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-janz-ttl.c b/drivers/gpio/gpio-janz-ttl.c index 6b9bf8b..b97a911 100644 --- a/drivers/gpio/gpio-janz-ttl.c +++ b/drivers/gpio/gpio-janz-ttl.c @@ -147,7 +147,6 @@ static int ttl_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct ttl_module *mod; struct gpio_chip *gpio; - struct resource *res; int ret; pdata = dev_get_platdata(&pdev->dev); @@ -164,8 +163,7 @@ static int ttl_probe(struct platform_device *pdev) spin_lock_init(&mod->lock); /* get access to the MODULbus registers for this module */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mod->regs = devm_ioremap_resource(dev, res); + mod->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mod->regs)) return PTR_ERR(mod->regs); -- 1.9.1