summaryrefslogtreecommitdiffstats
path: root/sound/soc/atmel/atmel-classd.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2021-06-25 15:08:03 +0200
committerMark Brown <broonie@kernel.org>2021-06-25 15:08:03 +0200
commit192664528154a84fab4e6d820f9cb2e2e0835544 (patch)
tree4fd7c74097fc474150317fb04245460f0992af17 /sound/soc/atmel/atmel-classd.c
parentMerge remote-tracking branch 'asoc/for-5.13' into asoc-linus (diff)
parentASoC: qcom: lpass-cpu: mark IRQ_CLEAR register as volatile and readable (diff)
downloadlinux-192664528154a84fab4e6d820f9cb2e2e0835544.tar.xz
linux-192664528154a84fab4e6d820f9cb2e2e0835544.zip
Merge remote-tracking branch 'asoc/for-5.14' into asoc-next
Diffstat (limited to 'sound/soc/atmel/atmel-classd.c')
-rw-r--r--sound/soc/atmel/atmel-classd.c3
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);