kirkwood-i2s.c (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) kirkwood-i2s.c (8c078706e9862c7cd8bcb22d34133262024c26bf)
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

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

731 err_component:
732 if (!IS_ERR(priv->extclk))
733 clk_disable_unprepare(priv->extclk);
734 clk_disable_unprepare(priv->clk);
735
736 return err;
737}
738
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

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

731 err_component:
732 if (!IS_ERR(priv->extclk))
733 clk_disable_unprepare(priv->extclk);
734 clk_disable_unprepare(priv->clk);
735
736 return err;
737}
738
739static int kirkwood_i2s_dev_remove(struct platform_device *pdev)
739static void kirkwood_i2s_dev_remove(struct platform_device *pdev)
740{
741 struct kirkwood_dma_data *priv = dev_get_drvdata(&pdev->dev);
742
743 snd_soc_unregister_component(&pdev->dev);
744 if (!IS_ERR(priv->extclk))
745 clk_disable_unprepare(priv->extclk);
746 clk_disable_unprepare(priv->clk);
740{
741 struct kirkwood_dma_data *priv = dev_get_drvdata(&pdev->dev);
742
743 snd_soc_unregister_component(&pdev->dev);
744 if (!IS_ERR(priv->extclk))
745 clk_disable_unprepare(priv->extclk);
746 clk_disable_unprepare(priv->clk);
747
748 return 0;
749}
750
751#ifdef CONFIG_OF
752static const struct of_device_id mvebu_audio_of_match[] = {
753 { .compatible = "marvell,kirkwood-audio" },
754 { .compatible = "marvell,dove-audio" },
755 { .compatible = "marvell,armada370-audio" },
756 { .compatible = "marvell,armada-380-audio" },
757 { }
758};
759MODULE_DEVICE_TABLE(of, mvebu_audio_of_match);
760#endif
761
762static struct platform_driver kirkwood_i2s_driver = {
763 .probe = kirkwood_i2s_dev_probe,
747}
748
749#ifdef CONFIG_OF
750static const struct of_device_id mvebu_audio_of_match[] = {
751 { .compatible = "marvell,kirkwood-audio" },
752 { .compatible = "marvell,dove-audio" },
753 { .compatible = "marvell,armada370-audio" },
754 { .compatible = "marvell,armada-380-audio" },
755 { }
756};
757MODULE_DEVICE_TABLE(of, mvebu_audio_of_match);
758#endif
759
760static struct platform_driver kirkwood_i2s_driver = {
761 .probe = kirkwood_i2s_dev_probe,
764 .remove = kirkwood_i2s_dev_remove,
762 .remove_new = kirkwood_i2s_dev_remove,
765 .driver = {
766 .name = DRV_NAME,
767 .of_match_table = of_match_ptr(mvebu_audio_of_match),
768 },
769};
770
771module_platform_driver(kirkwood_i2s_driver);
772
773/* Module information */
774MODULE_AUTHOR("Arnaud Patard, <arnaud.patard@rtp-net.org>");
775MODULE_DESCRIPTION("Kirkwood I2S SoC Interface");
776MODULE_LICENSE("GPL");
777MODULE_ALIAS("platform:mvebu-audio");
763 .driver = {
764 .name = DRV_NAME,
765 .of_match_table = of_match_ptr(mvebu_audio_of_match),
766 },
767};
768
769module_platform_driver(kirkwood_i2s_driver);
770
771/* Module information */
772MODULE_AUTHOR("Arnaud Patard, <arnaud.patard@rtp-net.org>");
773MODULE_DESCRIPTION("Kirkwood I2S SoC Interface");
774MODULE_LICENSE("GPL");
775MODULE_ALIAS("platform:mvebu-audio");