kirkwood-i2s.c (c39f2d9db0fd81ea20bb5cce9b3f082ca63753e2) kirkwood-i2s.c (89dd38bf130e661d92c6ab7e3b003907f1d3f367)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * kirkwood-i2s.c
4 *
5 * (c) 2010 Arnaud Patard <apatard@mandriva.com>
6 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org>
7 */
8

--- 509 unchanged lines hidden (view full) ---

518 },
519};
520
521static int kirkwood_i2s_dev_probe(struct platform_device *pdev)
522{
523 struct kirkwood_asoc_platform_data *data = pdev->dev.platform_data;
524 struct snd_soc_dai_driver *soc_dai = kirkwood_i2s_dai;
525 struct kirkwood_dma_data *priv;
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * kirkwood-i2s.c
4 *
5 * (c) 2010 Arnaud Patard <apatard@mandriva.com>
6 * (c) 2010 Arnaud Patard <arnaud.patard@rtp-net.org>
7 */
8

--- 509 unchanged lines hidden (view full) ---

518 },
519};
520
521static int kirkwood_i2s_dev_probe(struct platform_device *pdev)
522{
523 struct kirkwood_asoc_platform_data *data = pdev->dev.platform_data;
524 struct snd_soc_dai_driver *soc_dai = kirkwood_i2s_dai;
525 struct kirkwood_dma_data *priv;
526 struct resource *mem;
527 struct device_node *np = pdev->dev.of_node;
528 int err;
529
530 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
531 if (!priv)
532 return -ENOMEM;
533
534 dev_set_drvdata(&pdev->dev, priv);
535
526 struct device_node *np = pdev->dev.of_node;
527 int err;
528
529 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
530 if (!priv)
531 return -ENOMEM;
532
533 dev_set_drvdata(&pdev->dev, priv);
534
536 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
537 priv->io = devm_ioremap_resource(&pdev->dev, mem);
535 priv->io = devm_platform_ioremap_resource(pdev, 0);
538 if (IS_ERR(priv->io))
539 return PTR_ERR(priv->io);
540
541 priv->irq = platform_get_irq(pdev, 0);
542 if (priv->irq < 0) {
543 dev_err(&pdev->dev, "platform_get_irq failed: %d\n", priv->irq);
544 return priv->irq;
545 }

--- 104 unchanged lines hidden ---
536 if (IS_ERR(priv->io))
537 return PTR_ERR(priv->io);
538
539 priv->irq = platform_get_irq(pdev, 0);
540 if (priv->irq < 0) {
541 dev_err(&pdev->dev, "platform_get_irq failed: %d\n", priv->irq);
542 return priv->irq;
543 }

--- 104 unchanged lines hidden ---