Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4000229ybl; Tue, 20 Aug 2019 05:38:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqytEr1PxdM7xG3b6TQzmbbjOlgZoGzojx9O//qH1zMWAqPbgzi1RDPh+RW4VKRMu9YNzsuJ X-Received: by 2002:a65:62c4:: with SMTP id m4mr24108086pgv.243.1566304732027; Tue, 20 Aug 2019 05:38:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566304732; cv=none; d=google.com; s=arc-20160816; b=ixGIsNHBR3w2FqG6X9U3/ZyHHBp4B3N5+/81t2vcS9/5yCUxotKnfarzjWNkYcXGgf Jhj2nfwl8H8Uq1+6OfKlXSULUFTxRlH/LoCrLJoSa3XQNVHDD6cZ2/eyzPTb4+aMh3Td jh7xtWbEdrVixTqwoE0pnTO7cbQ9LeSzHlD9m8QgUM2X1wLVdZ81GCWA1gSlL9QhLM+C j71laljrIFTQ4l6btY0F30ewVyLwEZFy8+kgcxh8uqsvp2nF/BpIkulcYm9W+qT3+mZJ RmfpzTrZpx2kJ6ZCuiGztphTawbwgD6QlqLAsyB0P9HyvCZhkYL5AjTw89NTPd+xMTVy E9UA== 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=6zz3cmRpjkyCHT3M4bdUgyMIbsLZ6lTvXZ0y7HTk+B4=; b=i2tf+eF2SKLftvd1dyU4oMz0+Me6apJ+exqhr6DnofXHe9J+ZIcG2sUF/svobc3+JL /Aqv8M5r9wl5gDRKbHt1FYH7SUQ34JXeIaRjKLO3ewa6X68RCYJLCWCMciGxcxyL8/Tr TO9hv4r4G5vpTviHexBB2muX9cC+o0iUSYSnkXwFphHMtys3m6uYoAphI9K1VrSTI9ia XZ3klN6mSdWz3H4Es15LaRT/bnLGk/k8Cfme3Jua8Ay+2d3LIrXqEd2VtJr2HvXUmAIV XoRXyW4/igmfoTIdFtoDsmMpAorPQU1Rm/oRHfQUQ7R0F3t4ls6uoFpHKE+hUI+OFOvz UnbA== 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 g5si11323606pjp.10.2019.08.20.05.38.37; Tue, 20 Aug 2019 05:38:52 -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 S1730123AbfHTMgM (ORCPT + 99 others); Tue, 20 Aug 2019 08:36:12 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:57909 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729576AbfHTMgC (ORCPT ); Tue, 20 Aug 2019 08:36:02 -0400 Received: from orion.localdomain ([95.117.23.32]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1N49Ul-1iPw4H1GZl-0107e4; Tue, 20 Aug 2019 14:35:52 +0200 From: "Enrico Weigelt, metux IT consult" To: linux-kernel@vger.kernel.org Cc: axboe@kernel.dk, hdegoede@redhat.com, b.zolnierkie@samsung.com, linus.walleij@linaro.org, linux-ide@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH 8/9] drivers: ata: sata_gemini: use devm_platform_ioremap_resource() Date: Tue, 20 Aug 2019 14:35:47 +0200 Message-Id: <1566304548-19972-8-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1566304548-19972-1-git-send-email-info@metux.net> References: <1566304548-19972-1-git-send-email-info@metux.net> X-Provags-ID: V03:K1:7x5C1yuziwweplAD/3CXQ+p5mRzeq7NIdXOCRZIcKS6qz9xQoz1 Js3vGcomg0xZug7heujJy7I4KjwJrKZ3n84wzF5zq2iKcI98W2gxrdwn9PX63wZBR4KC4oE jvBYz+XxGp/W2po4w2/W7JoP2Ym4vPS9fT7etNZ+CwGYv4a0AmYM3rij4AlgGM5qxYGqEV2 Ef/xWTsUaXjstHlGG/eGg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:AmAntXxXphg=:0I1Gy8JzNhuWCUwcwoqwoH Sgm52y3pzw9OHvYIYh3ZwHm+U68BLUHSHHND5qcuhZu/u1qVgarShlDmJNcqo18S1s7zy9S3a wi30lKDEfwAsHQD4cKSVPq81Fri20TZU4hbeiX+BVhRW4VaweBHlCsrmqz/1LsaXbAhS7Qutl YecE8B65vgQIq+3y6X6g9J3CTn/olLoD9wc3cxzp11y9ZXAkVUz94XTDuOra/Fv1D2F7ZUC4F zAYA6+F/HqecEeEOIG4GufDOzBbYNWED2jCodvQ2WyYo4ZB6QSumU9P27O4hequ5CQf0SVfdI Pl/H7JKk5Ygz0/zx9p9+yZSzJlVSIqhiraFOaCmo4l0qnRIRvdMhBzygGHrkNL2T1j7R9VA5B mQawtm3z7PJSVNpZmfOQQhc3mDiaASKL42G4tOW9j70A1dDQqjGnlzIfzATMTl4Rw757dGv4P HSBZsOzgH1LWKsb+LjvbDb7erzHXKhz0sQgEn9YmKcHOLF9MEtCeP2SvistdoO7s4dxt4pHcx ZIU7wUCh05DDRAsEBSaf8zqi4e11F8+EwddRHJD10gMbfvCqlpgUZMzImzZbJdC5tHQipujvH sBTxQOriRJBA6oj62DGk/ne8Yb7kUPOnuYP7eyMabP/Jycec9YOjHQ3FZ+UEEvH8mE2JIo5U3 h3hMZtKJWhXwjNGMYwO+LIjQjQ3xXYRQzqEHxwPTTfJnI0c8R7I3ZfiU2GgOwRM8wchM6p4rk DNxumNTnZEKF0Bqjmfyq7zfmf86LRNNTPXxGMg== 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/ata/sata_gemini.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/ata/sata_gemini.c b/drivers/ata/sata_gemini.c index f793564..55e2689 100644 --- a/drivers/ata/sata_gemini.c +++ b/drivers/ata/sata_gemini.c @@ -318,7 +318,6 @@ static int gemini_sata_probe(struct platform_device *pdev) struct device_node *np = dev->of_node; struct sata_gemini *sg; struct regmap *map; - struct resource *res; enum gemini_muxmode muxmode; u32 gmode; u32 gmask; @@ -329,11 +328,7 @@ static int gemini_sata_probe(struct platform_device *pdev) return -ENOMEM; sg->dev = dev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) - return -ENODEV; - - sg->base = devm_ioremap_resource(dev, res); + sg->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(sg->base)) return PTR_ERR(sg->base); -- 1.9.1