forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/sound/soc/cirrus/ep93xx-ac97.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ASoC driver for Cirrus Logic EP93xx AC97 controller.
34 *
45 * Copyright (c) 2010 Mika Westerberg
56 *
67 * Based on s3c-ac97 ASoC driver by Jaswinder Singh.
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include <linux/delay.h>
....@@ -24,6 +21,7 @@
2421 #include <sound/soc.h>
2522
2623 #include <linux/platform_data/dma-ep93xx.h>
24
+#include <linux/soc/cirrus/ep93xx.h>
2725
2826 #include "ep93xx-pcm.h"
2927
....@@ -287,7 +285,7 @@
287285 /*
288286 * As per Cirrus EP93xx errata described below:
289287 *
290
- * http://www.cirrus.com/en/pubs/errata/ER667E2B.pdf
288
+ * https://www.cirrus.com/en/pubs/errata/ER667E2B.pdf
291289 *
292290 * we will wait for the TX FIFO to be empty before
293291 * clearing the TEN bit.
....@@ -338,7 +336,6 @@
338336 static struct snd_soc_dai_driver ep93xx_ac97_dai = {
339337 .name = "ep93xx-ac97",
340338 .id = 0,
341
- .bus_control = true,
342339 .probe = ep93xx_ac97_dai_probe,
343340 .playback = {
344341 .stream_name = "AC97 Playback",
....@@ -364,7 +361,6 @@
364361 static int ep93xx_ac97_probe(struct platform_device *pdev)
365362 {
366363 struct ep93xx_ac97_info *info;
367
- struct resource *res;
368364 int irq;
369365 int ret;
370366
....@@ -372,8 +368,7 @@
372368 if (!info)
373369 return -ENOMEM;
374370
375
- res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
376
- info->regs = devm_ioremap_resource(&pdev->dev, res);
371
+ info->regs = devm_platform_ioremap_resource(pdev, 0);
377372 if (IS_ERR(info->regs))
378373 return PTR_ERR(info->regs);
379374