.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * ASoC driver for Cirrus Logic EP93xx AC97 controller. |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2010 Mika Westerberg |
---|
5 | 6 | * |
---|
6 | 7 | * 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. |
---|
11 | 8 | */ |
---|
12 | 9 | |
---|
13 | 10 | #include <linux/delay.h> |
---|
.. | .. |
---|
24 | 21 | #include <sound/soc.h> |
---|
25 | 22 | |
---|
26 | 23 | #include <linux/platform_data/dma-ep93xx.h> |
---|
| 24 | +#include <linux/soc/cirrus/ep93xx.h> |
---|
27 | 25 | |
---|
28 | 26 | #include "ep93xx-pcm.h" |
---|
29 | 27 | |
---|
.. | .. |
---|
287 | 285 | /* |
---|
288 | 286 | * As per Cirrus EP93xx errata described below: |
---|
289 | 287 | * |
---|
290 | | - * http://www.cirrus.com/en/pubs/errata/ER667E2B.pdf |
---|
| 288 | + * https://www.cirrus.com/en/pubs/errata/ER667E2B.pdf |
---|
291 | 289 | * |
---|
292 | 290 | * we will wait for the TX FIFO to be empty before |
---|
293 | 291 | * clearing the TEN bit. |
---|
.. | .. |
---|
338 | 336 | static struct snd_soc_dai_driver ep93xx_ac97_dai = { |
---|
339 | 337 | .name = "ep93xx-ac97", |
---|
340 | 338 | .id = 0, |
---|
341 | | - .bus_control = true, |
---|
342 | 339 | .probe = ep93xx_ac97_dai_probe, |
---|
343 | 340 | .playback = { |
---|
344 | 341 | .stream_name = "AC97 Playback", |
---|
.. | .. |
---|
364 | 361 | static int ep93xx_ac97_probe(struct platform_device *pdev) |
---|
365 | 362 | { |
---|
366 | 363 | struct ep93xx_ac97_info *info; |
---|
367 | | - struct resource *res; |
---|
368 | 364 | int irq; |
---|
369 | 365 | int ret; |
---|
370 | 366 | |
---|
.. | .. |
---|
372 | 368 | if (!info) |
---|
373 | 369 | return -ENOMEM; |
---|
374 | 370 | |
---|
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); |
---|
377 | 372 | if (IS_ERR(info->regs)) |
---|
378 | 373 | return PTR_ERR(info->regs); |
---|
379 | 374 | |
---|