summaryrefslogtreecommitdiff
path: root/sound/soc/ux500/mop500.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-01-18 19:10:47 +0300
committerMark Brown <broonie@kernel.org>2023-01-20 15:05:56 +0300
commit1766ac5248063c25d1fe46e04bb936c46313ed89 (patch)
tree5291f9ba0442d73a26c62b3eeea752dd7b4751b6 /sound/soc/ux500/mop500.c
parent8dc08c82afbf00e3cbe8944f7e33fa133c01858f (diff)
downloadlinux-1766ac5248063c25d1fe46e04bb936c46313ed89.tar.xz
ASoC: ux500: remove platform_data support
The platform data definition for ux500 sound devices was removed six years ago after the DT conversion was completed, see commit 4b483ed0be8b ("ARM: ux500: cut some platform data"). Remove some leftover bits in the ASoC driver and just assume that it always gets probed using DT. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Link: https://lore.kernel.org/r/20230118161110.521504-3-arnd@kernel.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/ux500/mop500.c')
-rw-r--r--sound/soc/ux500/mop500.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sound/soc/ux500/mop500.c b/sound/soc/ux500/mop500.c
index fdd55d772b8e..325e75e96136 100644
--- a/sound/soc/ux500/mop500.c
+++ b/sound/soc/ux500/mop500.c
@@ -109,11 +109,9 @@ static int mop500_probe(struct platform_device *pdev)
mop500_card.dev = &pdev->dev;
- if (np) {
- ret = mop500_of_probe(pdev, np);
- if (ret)
- return ret;
- }
+ ret = mop500_of_probe(pdev, np);
+ if (ret)
+ return ret;
dev_dbg(&pdev->dev, "%s: Card %s: Set platform drvdata.\n",
__func__, mop500_card.name);