diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-06-11 12:42:56 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-14 14:59:14 +0100 |
commit | be374dc0b5062eb8ec3feb5cb1795a24c399f6cc (patch) | |
tree | 8abb764a63317845eb4da6bff902f60116da28d6 /sound/soc/atmel | |
parent | a918e2917406e3cb946ac711e5ce77ae9798fa91 (diff) | |
download | linux-be374dc0b5062eb8ec3feb5cb1795a24c399f6cc.tar.bz2 |
ASoC: mchp-i2s-mcc: 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/20210611044256.3899583-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/atmel')
-rw-r--r-- | sound/soc/atmel/mchp-i2s-mcc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/atmel/mchp-i2s-mcc.c b/sound/soc/atmel/mchp-i2s-mcc.c index 673bc16cb46a..8988f024a732 100644 --- a/sound/soc/atmel/mchp-i2s-mcc.c +++ b/sound/soc/atmel/mchp-i2s-mcc.c @@ -1008,8 +1008,7 @@ static int mchp_i2s_mcc_probe(struct platform_device *pdev) if (!dev) return -ENOMEM; - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, mem); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &mem); if (IS_ERR(base)) return PTR_ERR(base); |