diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-06-15 09:39:16 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-21 13:03:13 +0100 |
commit | 2cd16cf0d6bbb47adddc633c60ca405f672e64f4 (patch) | |
tree | df3821715a64162d59bfa7a4f48b2521e51974cc /sound/soc/fsl/fsl_easrc.c | |
parent | 41e90cbbc50085487b4633f08c86dd71b0f18d7f (diff) | |
download | linux-2cd16cf0d6bbb47adddc633c60ca405f672e64f4.tar.bz2 |
ASoC: fsl_easrc: Use devm_platform_get_and_ioremap_resource()
Use devm_platform_get_and_ioremap_resource() to simplify
code.
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20210615013922.784296-4-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl/fsl_easrc.c')
-rw-r--r-- | sound/soc/fsl/fsl_easrc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index 25747433916e..be14f84796cb 100644 --- a/sound/soc/fsl/fsl_easrc.c +++ b/sound/soc/fsl/fsl_easrc.c @@ -1887,8 +1887,7 @@ static int fsl_easrc_probe(struct platform_device *pdev) easrc->private = easrc_priv; np = dev->of_node; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - regs = devm_ioremap_resource(dev, res); + regs = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(regs)) return PTR_ERR(regs); |