Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3998716ybl; Tue, 20 Aug 2019 05:37:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNrXM/6JYH0+aLmhHetHg4nvcfSax9FZEWmm8SCTRUUvhOK385KnO2/n6BlzOaV2xwAJHf X-Received: by 2002:a17:90a:256f:: with SMTP id j102mr26870228pje.14.1566304652587; Tue, 20 Aug 2019 05:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566304652; cv=none; d=google.com; s=arc-20160816; b=M+nU5AqnkQAYC0QGr9ID2d0phMvatRoDoSbSwQjiZiGCFUx3X19Zh1Zygf7AT3wuim fBgT4CqAYn6b7Yfkw36ht1D0NhAhg/Hz1RoJsI9BP6kKxWheUnE25xgU8ArHayUm1bE4 RZkYTUWF9E4BtI/t5jd/05BRhbNzrimBPE79lBXAu0QQ1JYrBMV7FYbjFBJWXrhTJlDf bn2qJDZrv8uX346Q6sZ6Hnw7zEo5gprFST/rkJ7wxSisRNsKfpoaG/+/TywZsPNA9khz by7bsWQwQ1USERrbaFbedptqOO+iS6TZ/vpwIToS+IjAZ9pwcpdkd7WtARglVjZ7Svrl A40A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=hqLzzw3Y4dJehWe2DjVHYYAAJhXQiDJo7cCdRGryVaw=; b=DdWJnJkRJblLU+uSZQVyLJoBlSkg5YqE6wUnhoKlvsmPa10Aze00P8n+0f1pjZrEil if9u6Q9IHryQiGUxRqlz6B9cBGbaFawjtb4gwJaTySVSDw5sIuYcJdon/TyxY1xoqPdk aHGvpj8XS8m1qUYrLBedp430Kaj2Jo/ngwWXZEI6ph9KZfwjI+pMcEao2aW+TzYNsKae kO8Y3n2gIHzno6fzuMiFF694VbgZ3/GwEHS2OWJORkfijB55vvIcZM7aUiWlP1aFBp8j cSCYcgfhnU/4Kv+3Rg3TP4MvJDJQ81XJo0TAMYKB4cXembm4WEgZSthuGhckDAN1mPHj qKIQ== 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 t23si12060141plr.108.2019.08.20.05.37.11; Tue, 20 Aug 2019 05:37:32 -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 S1730086AbfHTMgA (ORCPT + 99 others); Tue, 20 Aug 2019 08:36:00 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:44021 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728731AbfHTMf7 (ORCPT ); Tue, 20 Aug 2019 08:35:59 -0400 Received: from orion.localdomain ([95.117.23.32]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MkYoK-1igE8J2vvC-00m1Xj; Tue, 20 Aug 2019 14:35:49 +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 1/9] drivers: ata: ahci_octeon: use devm_platform_ioremap_resource() Date: Tue, 20 Aug 2019 14:35:40 +0200 Message-Id: <1566304548-19972-1-git-send-email-info@metux.net> X-Mailer: git-send-email 1.9.1 X-Provags-ID: V03:K1:19J2XSPCk+I/viSh5iyQa/yxyvInlBQRvuSLFAGqJIGLIQ5m7JT w92Df6oXLjJ1wIZGi6PVbYdoG114M6ozQvNXvi5fnevA881eYYtaTrB9PuKgtzx/s9jl32c I+hxBr0HSCaKKba/8P8WLWqjajf2WVwX7SND09cfYPQjM3jNnBxjUn4dNABjwzv6fHYLSG3 NNAAMXn2rAK5zH68gCcNQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:N1v9EQ0hAFo=:OdvgjeT4RSR+MmWeET+OXc e1FxY4T3UBE8o1xfMkTh9sI4/YvR9px1fFxQftfC2L9QeNFkhOvhtMlgko38BzK9QW1SiB+Xz I0K+RfAHkBOSsxdQe/cIjZrphVQQQprvCHw7Bp8Rs680Cd0s7wQG6JqxJZ5IwSkFuQ4aumccS vkBGe2gwjXtxwGdSU6cqxgz/1k477E5ojt114G0+S0TP/aimgWbvJKUUZuLtKnzuQ6t6s9ZbC 1yufO5bBupeyK6/GI22xLC0+PbXmXS58eV/UToL8NEC5FXpWLILnvDBPOpgYHwbJMuLM+rY7V nCvHCyDyb2BIOD5Sv78+Oybln8hjjarsEQ7R4X17F2zVDUoxP6BuDfuJIl16y3X9CUOFehKL1 +cEU4X30KIBpeH3bvN4K9boAf6fqBlZtEsTfnk53CjEWo560oIUI7Mps3jloPXKWQtFlIgqDn 5P6syF+6kIn20rWgZdnctSQxka6CkRdiL8LuutJ01Spa5lI58KwSOfAYcixRktYU3GcL9oub3 W+0SBQnc8+JtuDgZrFcjNsZS3i0ZPonmJyOBB2wLZ9weBwG9Yx4WTaicC2QefpmjpKMYmjRTE jWQNX2NQJFXL17o4DkopvZ3Ar41VIeBujlyeBohWnOmh+a8LZZWLi2XAkXInftOF+Ymmlt59N suv4mpHBUvugeNf5k7SD8r0PZobWRBdEDBWOIbkbc+H21tRiB91PStjl9X6vr1vRMIZeUFABu Wy4yxhzpggeZMvAWp03P7gWh1BD+4OjYPW7O4g== 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/ahci_octeon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/ata/ahci_octeon.c b/drivers/ata/ahci_octeon.c index 5a44e08..2280180 100644 --- a/drivers/ata/ahci_octeon.c +++ b/drivers/ata/ahci_octeon.c @@ -32,13 +32,11 @@ static int ahci_octeon_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct device_node *node = dev->of_node; - struct resource *res; void __iomem *base; u64 cfg; int ret; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); -- 1.9.1