diff options
-rw-r--r-- | sound/soc/samsung/i2s.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index a7e3519ad7c4..32956df8f50c 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c | |||
@@ -1143,9 +1143,9 @@ static int samsung_i2s_probe(struct platform_device *pdev) | |||
1143 | dev_err(&pdev->dev, "Unable to get drvdata\n"); | 1143 | dev_err(&pdev->dev, "Unable to get drvdata\n"); |
1144 | return -EFAULT; | 1144 | return -EFAULT; |
1145 | } | 1145 | } |
1146 | snd_soc_register_component(&sec_dai->pdev->dev, | 1146 | devm_snd_soc_register_component(&sec_dai->pdev->dev, |
1147 | &samsung_i2s_component, | 1147 | &samsung_i2s_component, |
1148 | &sec_dai->i2s_dai_drv, 1); | 1148 | &sec_dai->i2s_dai_drv, 1); |
1149 | samsung_asoc_dma_platform_register(&pdev->dev); | 1149 | samsung_asoc_dma_platform_register(&pdev->dev); |
1150 | return 0; | 1150 | return 0; |
1151 | } | 1151 | } |
@@ -1258,8 +1258,9 @@ static int samsung_i2s_probe(struct platform_device *pdev) | |||
1258 | goto err; | 1258 | goto err; |
1259 | } | 1259 | } |
1260 | 1260 | ||
1261 | snd_soc_register_component(&pri_dai->pdev->dev, &samsung_i2s_component, | 1261 | devm_snd_soc_register_component(&pri_dai->pdev->dev, |
1262 | &pri_dai->i2s_dai_drv, 1); | 1262 | &samsung_i2s_component, |
1263 | &pri_dai->i2s_dai_drv, 1); | ||
1263 | 1264 | ||
1264 | pm_runtime_enable(&pdev->dev); | 1265 | pm_runtime_enable(&pdev->dev); |
1265 | 1266 | ||
@@ -1294,7 +1295,6 @@ static int samsung_i2s_remove(struct platform_device *pdev) | |||
1294 | i2s->sec_dai = NULL; | 1295 | i2s->sec_dai = NULL; |
1295 | 1296 | ||
1296 | samsung_asoc_dma_platform_unregister(&pdev->dev); | 1297 | samsung_asoc_dma_platform_unregister(&pdev->dev); |
1297 | snd_soc_unregister_component(&pdev->dev); | ||
1298 | 1298 | ||
1299 | return 0; | 1299 | return 0; |
1300 | } | 1300 | } |