Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp311495ybe; Wed, 4 Sep 2019 20:47:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxofCxE+6pMdHfzFRFdgrXCLXmvwhN/96em4KsaP489LbuCY03JhTR9TDTcQuqvct7cBJJ8 X-Received: by 2002:a17:90a:248c:: with SMTP id i12mr1588352pje.130.1567655268297; Wed, 04 Sep 2019 20:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567655268; cv=none; d=google.com; s=arc-20160816; b=XxkpoIuJBDwZ8uR0c447EHZBlE07fjKVb1CK7qevFylJF4ul4jCdWTZIOyJS82IwPT 8C/0u64P2fFUJgQJLP7hIZFuwesIFm+PTm9Uw850jqz8/NWh1833QnZ81szU8W0MSJlB U1rFqjDl/QGrQnKDqX3vIBvdylLm0dw0uEPiAKgiD7guzdARXy/5u6tdRVOdP4ZJ/Eni cLSAYtgsBa1ScWJN3UBbyJMqUFZPjm343Eu3fqcq2JN7PuIO6hdlVWCJDABmOtCr21DL 7sC0dcWjmRzyGpvZdthmX0smNEHCCXjeqcQgLL+SfVa/A/JZ/1ACeDyvtCxNVeSCoI2R SUhA== 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 :dkim-signature:dkim-filter; bh=R46SqTBG0wiskAaYxuXipqRLOslxanzHTdul3DZROHA=; b=A7oDwv9nhHScbKqWs87csr5iNfrXWtPtm8UdRHPkRwJ+ZfYAMr+EPeBZKQ+5Bl+H2l +6WAaPZOt2rbrsGigFtRONX4H5FBj7R5Ayj6vqL61QOxwuzP5mi6Moog5Rq/CuEa7YOc Fkh2Vs+FRaJBkv41aTbqvIImb1RE5sTNI/5Co1C3hDC4dUpUtLxKqAwvnsWDLHcwqT/0 yTgM/q1wPpBszISjO25ANiBnpBlbloaFC3vMFP9/JT96w8w5HYuOqzyx3ChlS1mi71BM HUw44N/uHOG0gCvkAb+pjkGBME5mkru2HJesdizi1E3vGMNbTvg7i7ReDD5cYHcBjOB5 8ApA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=gv5Y3PoZ; 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 j9si875516pjs.72.2019.09.04.20.47.32; Wed, 04 Sep 2019 20:47:48 -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=@nifty.com header.s=dec2015msa header.b=gv5Y3PoZ; 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 S1730659AbfIEDmG (ORCPT + 99 others); Wed, 4 Sep 2019 23:42:06 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:30398 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbfIEDmG (ORCPT ); Wed, 4 Sep 2019 23:42:06 -0400 Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id x853fY68003716; Thu, 5 Sep 2019 12:41:35 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com x853fY68003716 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567654895; bh=R46SqTBG0wiskAaYxuXipqRLOslxanzHTdul3DZROHA=; h=From:To:Cc:Subject:Date:From; b=gv5Y3PoZTVKNnNJlAVgNZCYAMA72KKtMMFDvlAhmFn2EpRR2yChDvt3wababkCszC HHY21EZLMBcHIcaahCgEr4j7ZAyYb3wxK2UmxQdOAd7arl/8TcNvAxPYuRfHaNq4PY dUNc1yK1b7AGXq3L1LUq2yzWwiQ2zYn2seXtQWtKJsJAOF0ZmLaGfi6JQMNH3ZME0X fZqvqKfLsR58uvg84zWeCYhhRDilgEERcDRB41+8yzsfLQy6kZNlmoUQUJxIv1of9d X9LEnsW5HeBrk7ClwAMnKWyna+X8DDcrzqE+M+9E3cm8uhLqs4BnBYQGyuL2VsBS7V p64SIMHKVZyKQ== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: Vinod Koul , dmaengine@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada , Dan Williams , linux-arm-kernel@lists.infradead.org Subject: [PATCH] dmaengine: uniphier-mdmac: use devm_platform_ioremap_resource() Date: Thu, 5 Sep 2019 12:41:33 +0900 Message-Id: <20190905034133.29514-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace the chain of platform_get_resource() and devm_ioremap_resource() with devm_platform_ioremap_resource(). This allows to remove the local variable for (struct resource *), and have one function call less. Signed-off-by: Masahiro Yamada --- drivers/dma/uniphier-mdmac.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/dma/uniphier-mdmac.c b/drivers/dma/uniphier-mdmac.c index ec65a7430dc4..e42f2312b7a1 100644 --- a/drivers/dma/uniphier-mdmac.c +++ b/drivers/dma/uniphier-mdmac.c @@ -385,7 +385,6 @@ static int uniphier_mdmac_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct uniphier_mdmac_device *mdev; struct dma_device *ddev; - struct resource *res; int nr_chans, ret, i; nr_chans = platform_irq_count(pdev); @@ -401,8 +400,7 @@ static int uniphier_mdmac_probe(struct platform_device *pdev) if (!mdev) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - mdev->reg_base = devm_ioremap_resource(dev, res); + mdev->reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(mdev->reg_base)) return PTR_ERR(mdev->reg_base); -- 2.17.1