inno_rk3036.c (4f2c0a4acffbec01079c28f839422e64ddeff004) | inno_rk3036.c (8756b2ecbd2aa22d6981f6a48a804f0d2cec68a8) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Driver of Inno codec for rk3036 by Rockchip Inc. 4 * 5 * Author: Rockchip Inc. 6 * Author: Zheng ShunQian<zhengsq@rock-chips.com> 7 */ 8 --- 443 unchanged lines hidden (view full) --- 452 if (ret) { 453 clk_disable_unprepare(priv->pclk); 454 dev_set_drvdata(&pdev->dev, NULL); 455 } 456 457 return ret; 458} 459 | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * Driver of Inno codec for rk3036 by Rockchip Inc. 4 * 5 * Author: Rockchip Inc. 6 * Author: Zheng ShunQian<zhengsq@rock-chips.com> 7 */ 8 --- 443 unchanged lines hidden (view full) --- 452 if (ret) { 453 clk_disable_unprepare(priv->pclk); 454 dev_set_drvdata(&pdev->dev, NULL); 455 } 456 457 return ret; 458} 459 |
460static int rk3036_codec_platform_remove(struct platform_device *pdev) | 460static void rk3036_codec_platform_remove(struct platform_device *pdev) |
461{ 462 struct rk3036_codec_priv *priv = dev_get_drvdata(&pdev->dev); 463 464 clk_disable_unprepare(priv->pclk); | 461{ 462 struct rk3036_codec_priv *priv = dev_get_drvdata(&pdev->dev); 463 464 clk_disable_unprepare(priv->pclk); |
465 466 return 0; | |
467} 468 469static const struct of_device_id rk3036_codec_of_match[] __maybe_unused = { 470 { .compatible = "rockchip,rk3036-codec", }, 471 {} 472}; 473MODULE_DEVICE_TABLE(of, rk3036_codec_of_match); 474 475static struct platform_driver rk3036_codec_platform_driver = { 476 .driver = { 477 .name = "rk3036-codec-platform", 478 .of_match_table = of_match_ptr(rk3036_codec_of_match), 479 }, 480 .probe = rk3036_codec_platform_probe, | 465} 466 467static const struct of_device_id rk3036_codec_of_match[] __maybe_unused = { 468 { .compatible = "rockchip,rk3036-codec", }, 469 {} 470}; 471MODULE_DEVICE_TABLE(of, rk3036_codec_of_match); 472 473static struct platform_driver rk3036_codec_platform_driver = { 474 .driver = { 475 .name = "rk3036-codec-platform", 476 .of_match_table = of_match_ptr(rk3036_codec_of_match), 477 }, 478 .probe = rk3036_codec_platform_probe, |
481 .remove = rk3036_codec_platform_remove, | 479 .remove_new = rk3036_codec_platform_remove, |
482}; 483 484module_platform_driver(rk3036_codec_platform_driver); 485 486MODULE_AUTHOR("Rockchip Inc."); 487MODULE_DESCRIPTION("Rockchip rk3036 codec driver"); 488MODULE_LICENSE("GPL"); | 480}; 481 482module_platform_driver(rk3036_codec_platform_driver); 483 484MODULE_AUTHOR("Rockchip Inc."); 485MODULE_DESCRIPTION("Rockchip rk3036 codec driver"); 486MODULE_LICENSE("GPL"); |