diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2021-06-11 10:21:15 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-06-14 14:59:15 +0100 |
commit | 9494d059971c5120c60bbe4aae5cba00b20ed774 (patch) | |
tree | 089e9f2a9cba71dc85555a287949d1567c86e0a7 /sound/soc/atmel | |
parent | be374dc0b5062eb8ec3feb5cb1795a24c399f6cc (diff) | |
download | linux-9494d059971c5120c60bbe4aae5cba00b20ed774.tar.bz2 |
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); |