All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: Felipe Balbi <balbi@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>,
	Chunfeng Yun <chunfeng.yun@mediatek.com>,
	<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-mediatek@lists.infradead.org>,
	Peter Chen <peter.chen@nxp.com>
Subject: [PATCH 3/7] usb: cdns3: convert to devm_platform_ioremap_resource_byname
Date: Wed, 22 Jul 2020 15:51:11 +0800	[thread overview]
Message-ID: <1595404275-8449-3-git-send-email-chunfeng.yun@mediatek.com> (raw)
In-Reply-To: <1595404275-8449-1-git-send-email-chunfeng.yun@mediatek.com>

Use devm_platform_ioremap_resource_byname() to simplify code

Cc: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
 drivers/usb/cdns3/core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c
index 19bbb5b..24faf60 100644
--- a/drivers/usb/cdns3/core.c
+++ b/drivers/usb/cdns3/core.c
@@ -436,8 +436,7 @@ static int cdns3_probe(struct platform_device *pdev)
 	if (cdns->dev_irq < 0)
 		dev_err(dev, "couldn't get peripheral irq\n");
 
-	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dev");
-	regs = devm_ioremap_resource(dev, res);
+	regs = devm_platform_ioremap_resource_byname(pdev, "dev");
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 	cdns->dev_regs	= regs;
-- 
1.9.1

WARNING: multiple messages have this Message-ID (diff)
From: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: Felipe Balbi <balbi@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Peter Chen <peter.chen@nxp.com>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Chunfeng Yun <chunfeng.yun@mediatek.com>,
	linux-mediatek@lists.infradead.org,
	Matthias Brugger <matthias.bgg@gmail.com>,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/7] usb: cdns3: convert to devm_platform_ioremap_resource_byname
Date: Wed, 22 Jul 2020 15:51:11 +0800	[thread overview]
Message-ID: <1595404275-8449-3-git-send-email-chunfeng.yun@mediatek.com> (raw)
In-Reply-To: <1595404275-8449-1-git-send-email-chunfeng.yun@mediatek.com>

Use devm_platform_ioremap_resource_byname() to simplify code

Cc: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
 drivers/usb/cdns3/core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c
index 19bbb5b..24faf60 100644
--- a/drivers/usb/cdns3/core.c
+++ b/drivers/usb/cdns3/core.c
@@ -436,8 +436,7 @@ static int cdns3_probe(struct platform_device *pdev)
 	if (cdns->dev_irq < 0)
 		dev_err(dev, "couldn't get peripheral irq\n");
 
-	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dev");
-	regs = devm_ioremap_resource(dev, res);
+	regs = devm_platform_ioremap_resource_byname(pdev, "dev");
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 	cdns->dev_regs	= regs;
-- 
1.9.1
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

WARNING: multiple messages have this Message-ID (diff)
From: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: Felipe Balbi <balbi@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Peter Chen <peter.chen@nxp.com>,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	Chunfeng Yun <chunfeng.yun@mediatek.com>,
	linux-mediatek@lists.infradead.org,
	Matthias Brugger <matthias.bgg@gmail.com>,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/7] usb: cdns3: convert to devm_platform_ioremap_resource_byname
Date: Wed, 22 Jul 2020 15:51:11 +0800	[thread overview]
Message-ID: <1595404275-8449-3-git-send-email-chunfeng.yun@mediatek.com> (raw)
In-Reply-To: <1595404275-8449-1-git-send-email-chunfeng.yun@mediatek.com>

Use devm_platform_ioremap_resource_byname() to simplify code

Cc: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
---
 drivers/usb/cdns3/core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c
index 19bbb5b..24faf60 100644
--- a/drivers/usb/cdns3/core.c
+++ b/drivers/usb/cdns3/core.c
@@ -436,8 +436,7 @@ static int cdns3_probe(struct platform_device *pdev)
 	if (cdns->dev_irq < 0)
 		dev_err(dev, "couldn't get peripheral irq\n");
 
-	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dev");
-	regs = devm_ioremap_resource(dev, res);
+	regs = devm_platform_ioremap_resource_byname(pdev, "dev");
 	if (IS_ERR(regs))
 		return PTR_ERR(regs);
 	cdns->dev_regs	= regs;
-- 
1.9.1
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  parent reply	other threads:[~2020-07-22  7:52 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-22  7:51 [PATCH 1/7] usb: mtu3: convert to devm_platform_ioremap_resource_byname Chunfeng Yun
2020-07-22  7:51 ` Chunfeng Yun
2020-07-22  7:51 ` Chunfeng Yun
2020-07-22  7:51 ` [PATCH 2/7] usb: phy: am335x: " Chunfeng Yun
2020-07-22  7:51   ` Chunfeng Yun
2020-07-22  7:51   ` Chunfeng Yun
2020-07-22  7:51 ` Chunfeng Yun [this message]
2020-07-22  7:51   ` [PATCH 3/7] usb: cdns3: " Chunfeng Yun
2020-07-22  7:51   ` Chunfeng Yun
2020-07-22  8:46   ` Peter Chen
2020-07-22  8:46     ` Peter Chen
2020-07-22  8:46     ` Peter Chen
2020-07-22  7:51 ` [PATCH 4/7] usb: dwc3: " Chunfeng Yun
2020-07-22  7:51   ` Chunfeng Yun
2020-07-22  7:51   ` Chunfeng Yun
2020-07-27 12:55   ` Patrice CHOTARD
2020-07-27 12:55     ` Patrice CHOTARD
2020-07-27 12:55     ` Patrice CHOTARD
2020-07-22  7:51 ` [PATCH 5/7] usb: gadget: r8a66597: " Chunfeng Yun
2020-07-22  7:51   ` Chunfeng Yun
2020-07-22  7:51   ` Chunfeng Yun
2020-07-22  7:51 ` [PATCH 6/7] usb: gadget: tegra-xudc: " Chunfeng Yun
2020-07-22  7:51   ` Chunfeng Yun
2020-07-22  7:51   ` Chunfeng Yun
2020-07-22  7:51 ` [PATCH 7/7] usb: musb: " Chunfeng Yun
2020-07-22  7:51   ` Chunfeng Yun
2020-07-22  7:51   ` Chunfeng Yun
2020-11-12 14:08   ` Geert Uytterhoeven
2020-11-12 14:08     ` Geert Uytterhoeven
2020-11-12 14:08     ` Geert Uytterhoeven
2020-11-13  8:26     ` Chunfeng Yun
2020-11-13  8:26       ` Chunfeng Yun
2020-11-13  8:26       ` Chunfeng Yun
2020-09-07  7:42 ` [PATCH 1/7] usb: mtu3: " Felipe Balbi
2020-09-07  7:42   ` Felipe Balbi
2020-09-07  7:42   ` Felipe Balbi
2020-09-18  3:38   ` Chunfeng Yun
2020-09-18  3:38     ` Chunfeng Yun
2020-09-18  3:38     ` Chunfeng Yun
2020-09-24  7:20     ` Felipe Balbi
2020-09-24  7:20       ` Felipe Balbi
2020-09-24  7:20       ` Felipe Balbi
2020-09-24  8:58       ` Chunfeng Yun
2020-09-24  8:58         ` Chunfeng Yun
2020-09-24  8:58         ` Chunfeng Yun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1595404275-8449-3-git-send-email-chunfeng.yun@mediatek.com \
    --to=chunfeng.yun@mediatek.com \
    --cc=balbi@kernel.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=peter.chen@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.