kirkwood-i2s.c (e5451c8f8330e03ad3cfa16048b4daf961af434f) kirkwood-i2s.c (e7b2e30a3f88b02b13a9bde05044142b38456004)
1/*
2 * kirkwood-i2s.c
3 *
4 * (c) 2010 Arnaud Patard <apatard@mandriva.com>
5 * (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

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

545 dev_set_drvdata(&pdev->dev, priv);
546
547 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
548 priv->io = devm_ioremap_resource(&pdev->dev, mem);
549 if (IS_ERR(priv->io))
550 return PTR_ERR(priv->io);
551
552 priv->irq = platform_get_irq(pdev, 0);
1/*
2 * kirkwood-i2s.c
3 *
4 * (c) 2010 Arnaud Patard <apatard@mandriva.com>
5 * (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

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

545 dev_set_drvdata(&pdev->dev, priv);
546
547 mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
548 priv->io = devm_ioremap_resource(&pdev->dev, mem);
549 if (IS_ERR(priv->io))
550 return PTR_ERR(priv->io);
551
552 priv->irq = platform_get_irq(pdev, 0);
553 if (priv->irq <= 0) {
554 dev_err(&pdev->dev, "platform_get_irq failed\n");
555 return -ENXIO;
553 if (priv->irq < 0) {
554 dev_err(&pdev->dev, "platform_get_irq failed: %d\n", priv->irq);
555 return priv->irq;
556 }
557
558 if (np) {
559 priv->burst = 128; /* might be 32 or 128 */
560 } else if (data) {
561 priv->burst = data->burst;
562 } else {
563 dev_err(&pdev->dev, "no DT nor platform data ?!\n");

--- 107 unchanged lines hidden ---
556 }
557
558 if (np) {
559 priv->burst = 128; /* might be 32 or 128 */
560 } else if (data) {
561 priv->burst = data->burst;
562 } else {
563 dev_err(&pdev->dev, "no DT nor platform data ?!\n");

--- 107 unchanged lines hidden ---