Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3295511yba; Sun, 28 Apr 2019 22:51:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxoOmlgVMurggXtOiiOXXUdCqgbzpEwJXCKRBDGAesHyBaJT4zeZl6tomCYo5VzO8ykeH3w X-Received: by 2002:a63:8b4b:: with SMTP id j72mr12364201pge.318.1556517082059; Sun, 28 Apr 2019 22:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556517082; cv=none; d=google.com; s=arc-20160816; b=qiplnQkN4QnuoGv26N2/M18oS/GASwZpny3r3fpJ27uAuCMJxrenWLBLA7ekiUiuGT SxhZmVAdmZkfx5q90GNgjtIjy4MTyhu/4RaxD3kNqNoqHPAIGaA9dCD0ERW+txYTKmDO EXGAFhW0RQ2dq0guSGcgrQ5v29i90hfaIDa1c7uqoy/Qy8OZgbXtfQz19KkE2Jelny08 Qw9I45C3ZfLA3/FyIT2uuPwvUH4ojNnpWRvH81UrGq2DI4Ab0xJdE0E5rH518WimRxSP N8FYHt5Vj5dLldYku8NzplgbSxqF33yoQerE7Cyzva38+u6CEjpay6zaW8gmCRXC0W0t dJ+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Ex/wtvFh2LFQHAMf1Hh9PK5P1Lhyqf0a9tTK9sge9xk=; b=fw8RH56oQTZi+hADzM9AOJdTQGQ2YNYaIxb07sdnHejPmkHLfU6mTvmd9aMY0L/P6y PPKx0sIAUAqN2kql41eEEG/37WXVpqj8vZE8noQUBcOpvrdwVdaFFw7BSSowxIHUnd2k Ggu+p6iOcm9vtXNulSuPVZJE5saHV4H/Gb1lUsSDeegJw+FEsD+2aifIvIjNu5SnDh4s aeCfempUOUeCjtXqdQ+VXspvz4dxdv21F+R8BPa71ZR5K9zAyYhpU9b+XdqfUqnOd8gw x1KGxui59WdoYPOaz5dBep2t2/vhWzHEpsQuNFbvUhGfqbD9N1kxdy6i7njPyXh2e7Kl S3/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CBU82Fhg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3si30323803pgr.189.2019.04.28.22.51.06; Sun, 28 Apr 2019 22:51:22 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CBU82Fhg; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727367AbfD2FuP (ORCPT + 99 others); Mon, 29 Apr 2019 01:50:15 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:36125 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbfD2FuO (ORCPT ); Mon, 29 Apr 2019 01:50:14 -0400 Received: by mail-pl1-f194.google.com with SMTP id w20so3925873plq.3; Sun, 28 Apr 2019 22:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ex/wtvFh2LFQHAMf1Hh9PK5P1Lhyqf0a9tTK9sge9xk=; b=CBU82FhgablygK35UzOKv2SgpPcjcujsSP/UUsEGT/SMOMRi9MaKMzA6+oDZeV2W+w xmgVaqaWs4mN13kqw0q7JFsg8Kr6w9oqxIKvUljNzyy6aM/bqu+N7twvIvp0Pf817soR Syoi2M+sGB/T7FwoiETpJRvTX17KHB1OQFGf5sjSP9oAfZQY8LoX5NRBch7FL/mK0tC8 jqPbraWZysNQocjzRMS2PSnhr7uh2te1ZWrvh1m/DUt7DBaplNjVc7QdjmD+m3hwHykp BQIQJhgjVru3CsHQJuVbOZMMeCWj/GSEVz1PM04Bbiv3g9hq1C2lw0jUkRIvjQrgg1vn AEmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ex/wtvFh2LFQHAMf1Hh9PK5P1Lhyqf0a9tTK9sge9xk=; b=DoT0G5IwkipfQXlTY0gWSFxtPmt6dA6FSwNfCHAMQEcnVy7Qe/c3tpNWxpWFlNZqrc mmhdv0ion4MQjoqyYZrq9MMI7cvh5cQ6wTTthOhNN/WMF8AzqoQszLvwNxpLknW4MjT6 ye6/GcTwKCMISW/+frqdqsNxe+hVL6rAKJ0adt0RzXxXJ07DX375wRql8HWgnBI/4kLF 7930w2VMYZksCumQwbWkdH2DS4EQNWuNRVBaDyDTdE9V266D0DOI7C7D8oMajfgipggX sQ5PpxQJtLSmBEt6e/l4z2ARV2fGJCIpzGmILmxJwnXJUG8+EbhtzBhKCysJMiECbvH2 /aSQ== X-Gm-Message-State: APjAAAWL07RA0zh8IcCCO8kP3mrrBUzLHQR/n5A6irzHlKq+Ms0o2/+R zG3n8BrRPehqwyqLJQSY9wAsqd19mbM= X-Received: by 2002:a17:902:a988:: with SMTP id bh8mr41019202plb.243.1556517013668; Sun, 28 Apr 2019 22:50:13 -0700 (PDT) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id n188sm19613605pfn.64.2019.04.28.22.50.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 28 Apr 2019 22:50:12 -0700 (PDT) From: Andrey Smirnov To: linux-gpio@vger.kernel.org Cc: Andrey Smirnov , Linus Walleij , Bartosz Golaszewski , Chris Healy , linux-kernel@vger.kernel.org Subject: [PATCH 1/2] gpio: vf610: Use devm_platform_ioremap_resource() Date: Sun, 28 Apr 2019 22:49:47 -0700 Message-Id: <20190429054948.9185-1-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace calls to platform_get_resource() and devm_ioremap_resource() with newly added devm_platform_ioremap_resource() for brevity. No functional change intended. Signed-off-by: Andrey Smirnov Cc: Linus Walleij Cc: Bartosz Golaszewski Cc: Chris Healy Cc: linux-gpio@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/gpio/gpio-vf610.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/gpio/gpio-vf610.c b/drivers/gpio/gpio-vf610.c index 6f6558715b88..30aef41e3b7e 100644 --- a/drivers/gpio/gpio-vf610.c +++ b/drivers/gpio/gpio-vf610.c @@ -242,7 +242,6 @@ static int vf610_gpio_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct device_node *np = dev->of_node; struct vf610_gpio_port *port; - struct resource *iores; struct gpio_chip *gc; struct irq_chip *ic; int i; @@ -253,13 +252,11 @@ static int vf610_gpio_probe(struct platform_device *pdev) return -ENOMEM; port->sdata = of_device_get_match_data(dev); - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); - port->base = devm_ioremap_resource(dev, iores); + port->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(port->base)) return PTR_ERR(port->base); - iores = platform_get_resource(pdev, IORESOURCE_MEM, 1); - port->gpio_base = devm_ioremap_resource(dev, iores); + port->gpio_base = devm_platform_ioremap_resource(pdev, 1); if (IS_ERR(port->gpio_base)) return PTR_ERR(port->gpio_base); -- 2.20.1