OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce7b97
)
usb: cdns3: convert to devm_platform_ioremap_resource_byname
author
Chunfeng Yun
<chunfeng.yun@mediatek.com>
Wed, 22 Jul 2020 07:51:11 +0000
(15:51 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 14:49:37 +0000
(16:49 +0200)
Use devm_platform_ioremap_resource_byname() to simplify code
Cc: Peter Chen <peter.chen@nxp.com>
Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link:
https://lore.kernel.org/r/1595404275-8449-3-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/core.c
patch
|
blob
|
history
diff --git
a/drivers/usb/cdns3/core.c
b/drivers/usb/cdns3/core.c
index
72885c5
..
5c1586e
100644
(file)
--- a/
drivers/usb/cdns3/core.c
+++ b/
drivers/usb/cdns3/core.c
@@
-423,8
+423,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;