diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-06-15 09:39:20 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-21 13:03:16 +0100 |
commit | cbb7ea0aebf0c07061be615cab97ac9cab8a48a0 (patch) | |
tree | b4428ccf0a2ed4614038c34a3181cf52194f344e /sound/soc/fsl | |
parent | 664107f63888bdd8a5e1d38c8246b9508a1dc46a (diff) | |
download | linux-cbb7ea0aebf0c07061be615cab97ac9cab8a48a0.tar.bz2 |
ASoC: fsl_spdif: 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-8-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/fsl_spdif.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index 29cefd459241..2252a4a62fa5 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -1355,8 +1355,7 @@ static int fsl_spdif_probe(struct platform_device *pdev) spdif_priv->soc->tx_formats; /* Get the addresses and IRQ */ - 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); |