diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-06-11 04:21:15 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-14 15:59:15 +0200 |
commit | 9494d059971c5120c60bbe4aae5cba00b20ed774 (patch) | |
tree | 089e9f2a9cba71dc85555a287949d1567c86e0a7 /sound/soc/atmel | |
parent | ASoC: mchp-i2s-mcc: Use devm_platform_get_and_ioremap_resource() (diff) | |
download | linux-9494d059971c5120c60bbe4aae5cba00b20ed774.tar.xz linux-9494d059971c5120c60bbe4aae5cba00b20ed774.zip |
ASoC: atmel-classd: 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/20210611022115.3583765-1-yangyingliang@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/atmel')
-rw-r--r-- | sound/soc/atmel/atmel-classd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/atmel/atmel-classd.c b/sound/soc/atmel/atmel-classd.c index 6023369e0f1a..a9f9f449c48c 100644 --- a/sound/soc/atmel/atmel-classd.c +++ b/sound/soc/atmel/atmel-classd.c @@ -558,8 +558,7 @@ static int atmel_classd_probe(struct platform_device *pdev) return ret; } - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - io_base = devm_ioremap_resource(dev, res); + io_base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(io_base)) return PTR_ERR(io_base); |