projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d81f0d
)
ASoC: tegra: tegra210_admaif: Use devm_platform_get_and_ioremap_resource()
author
Yang Yingliang
<yangyingliang@huawei.com>
Fri, 18 Jun 2021 02:47:21 +0000
(10:47 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 23 Jun 2021 10:49:31 +0000
(11:49 +0100)
Use devm_platform_get_and_ioremap_resource() to simplify
code.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link:
https://lore.kernel.org/r/20210618024722.2618842-4-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra210_admaif.c
patch
|
blob
|
history
diff --git
a/sound/soc/tegra/tegra210_admaif.c
b/sound/soc/tegra/tegra210_admaif.c
index
1268046
..
0f9beef
100644
(file)
--- a/
sound/soc/tegra/tegra210_admaif.c
+++ b/
sound/soc/tegra/tegra210_admaif.c
@@
-706,9
+706,7
@@
static int tegra_admaif_probe(struct platform_device *pdev)
return -ENOMEM;
}
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-
- regs = devm_ioremap_resource(&pdev->dev, res);
+ regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res);
if (IS_ERR(regs))
return PTR_ERR(regs);