.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * kirkwood-i2s.c |
---|
3 | 4 | * |
---|
4 | 5 | * (c) 2010 Arnaud Patard <apatard@mandriva.com> |
---|
5 | 6 | * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org> |
---|
6 | | - * |
---|
7 | | - * This program is free software; you can redistribute it and/or modify it |
---|
8 | | - * under the terms of the GNU General Public License as published by the |
---|
9 | | - * Free Software Foundation; either version 2 of the License, or (at your |
---|
10 | | - * option) any later version. |
---|
11 | 7 | */ |
---|
12 | 8 | |
---|
13 | 9 | #include <linux/init.h> |
---|
.. | .. |
---|
527 | 523 | struct kirkwood_asoc_platform_data *data = pdev->dev.platform_data; |
---|
528 | 524 | struct snd_soc_dai_driver *soc_dai = kirkwood_i2s_dai; |
---|
529 | 525 | struct kirkwood_dma_data *priv; |
---|
530 | | - struct resource *mem; |
---|
531 | 526 | struct device_node *np = pdev->dev.of_node; |
---|
532 | 527 | int err; |
---|
533 | 528 | |
---|
.. | .. |
---|
537 | 532 | |
---|
538 | 533 | dev_set_drvdata(&pdev->dev, priv); |
---|
539 | 534 | |
---|
540 | | - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
---|
541 | | - priv->io = devm_ioremap_resource(&pdev->dev, mem); |
---|
| 535 | + priv->io = devm_platform_ioremap_resource(pdev, 0); |
---|
542 | 536 | if (IS_ERR(priv->io)) |
---|
543 | 537 | return PTR_ERR(priv->io); |
---|
544 | 538 | |
---|
545 | 539 | priv->irq = platform_get_irq(pdev, 0); |
---|
546 | | - if (priv->irq < 0) { |
---|
547 | | - dev_err(&pdev->dev, "platform_get_irq failed: %d\n", priv->irq); |
---|
| 540 | + if (priv->irq < 0) |
---|
548 | 541 | return priv->irq; |
---|
549 | | - } |
---|
550 | 542 | |
---|
551 | 543 | if (np) { |
---|
552 | 544 | priv->burst = 128; /* might be 32 or 128 */ |
---|