aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/soc/omap/omap-dmic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/omap/omap-dmic.c b/sound/soc/omap/omap-dmic.c
index 6925d7141215..f125eb95d8c8 100644
--- a/sound/soc/omap/omap-dmic.c
+++ b/sound/soc/omap/omap-dmic.c
@@ -490,8 +490,9 @@ static int asoc_dmic_probe(struct platform_device *pdev)
490 } 490 }
491 491
492 492
493 ret = snd_soc_register_component(&pdev->dev, &omap_dmic_component, 493 ret = devm_snd_soc_register_component(&pdev->dev,
494 &omap_dmic_dai, 1); 494 &omap_dmic_component,
495 &omap_dmic_dai, 1);
495 if (ret) 496 if (ret)
496 goto err_put_clk; 497 goto err_put_clk;
497 498
@@ -510,7 +511,6 @@ static int asoc_dmic_remove(struct platform_device *pdev)
510{ 511{
511 struct omap_dmic *dmic = platform_get_drvdata(pdev); 512 struct omap_dmic *dmic = platform_get_drvdata(pdev);
512 513
513 snd_soc_unregister_component(&pdev->dev);
514 clk_put(dmic->fclk); 514 clk_put(dmic->fclk);
515 515
516 return 0; 516 return 0;