projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38483e8
)
fsi: aspeed: convert to devm_platform_ioremap_resource
author
Yangtao Li
<tiny.windzz@gmail.com>
Sat, 28 Dec 2019 19:06:31 +0000
(19:06 +0000)
committer
Joel Stanley
<joel@jms.id.au>
Fri, 4 Jun 2021 05:04:09 +0000
(14:34 +0930)
Use devm_platform_ioremap_resource() to simplify code.
Signed-off-by: Yangtao Li <tiny.windzz@gmail.com>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Link:
https://lore.kernel.org/r/20191228190631.26777-1-tiny.windzz@gmail.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
drivers/fsi/fsi-master-aspeed.c
patch
|
blob
|
history
diff --git
a/drivers/fsi/fsi-master-aspeed.c
b/drivers/fsi/fsi-master-aspeed.c
index 1b6dd2f6aae0b46cd4223f3fd13338bd807c34fd..d3ffa8423deaed41c93af2a1b700b466b7a7df9b 100644
(file)
--- a/
drivers/fsi/fsi-master-aspeed.c
+++ b/
drivers/fsi/fsi-master-aspeed.c
@@
-533,7
+533,6
@@
static int tacoma_cabled_fsi_fixup(struct device *dev)
static int fsi_master_aspeed_probe(struct platform_device *pdev)
{
struct fsi_master_aspeed *aspeed;
- struct resource *res;
int rc, links, reg;
__be32 raw;
@@
-549,8
+548,7
@@
static int fsi_master_aspeed_probe(struct platform_device *pdev)
aspeed->dev = &pdev->dev;
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- aspeed->base = devm_ioremap_resource(&pdev->dev, res);
+ aspeed->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(aspeed->base))
return PTR_ERR(aspeed->base);