kirkwood-i2s.c (314820c9e892d8f41ba4db300ec96770d9c8294b) kirkwood-i2s.c (baffab28b13120694fa3ebab08d3e99667a851d2)
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

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

453 priv->clk = clk_get(&pdev->dev, NULL);
454 if (IS_ERR(priv->clk)) {
455 dev_err(&pdev->dev, "no clock\n");
456 err = PTR_ERR(priv->clk);
457 goto err_ioremap;
458 }
459 clk_prepare_enable(priv->clk);
460
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

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

453 priv->clk = clk_get(&pdev->dev, NULL);
454 if (IS_ERR(priv->clk)) {
455 dev_err(&pdev->dev, "no clock\n");
456 err = PTR_ERR(priv->clk);
457 goto err_ioremap;
458 }
459 clk_prepare_enable(priv->clk);
460
461 return snd_soc_register_dai(&pdev->dev, &kirkwood_i2s_dai);
461 err = snd_soc_register_dai(&pdev->dev, &kirkwood_i2s_dai);
462 if (!err)
463 return 0;
464 dev_err(&pdev->dev, "snd_soc_register_dai failed\n");
462
465
466 clk_disable_unprepare(priv->clk);
467 clk_put(priv->clk);
468
463err_ioremap:
464 iounmap(priv->io);
465err_iomem:
466 release_mem_region(priv->mem->start, SZ_16K);
467err_alloc:
468 kfree(priv);
469error:
470 return err;

--- 34 unchanged lines hidden ---
469err_ioremap:
470 iounmap(priv->io);
471err_iomem:
472 release_mem_region(priv->mem->start, SZ_16K);
473err_alloc:
474 kfree(priv);
475error:
476 return err;

--- 34 unchanged lines hidden ---