aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/mpc8610_hpcd.c2
-rw-r--r--sound/soc/fsl/p1022_ds.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/fsl/mpc8610_hpcd.c b/sound/soc/fsl/mpc8610_hpcd.c
index 358f0baaf71b..31af405bda84 100644
--- a/sound/soc/fsl/mpc8610_hpcd.c
+++ b/sound/soc/fsl/mpc8610_hpcd.c
@@ -505,7 +505,7 @@ static int mpc8610_hpcd_probe(struct platform_device *pdev)
505 return 0; 505 return 0;
506 506
507error_sound: 507error_sound:
508 platform_device_unregister(sound_device); 508 platform_device_put(sound_device);
509error: 509error:
510 kfree(machine_data); 510 kfree(machine_data);
511error_alloc: 511error_alloc:
diff --git a/sound/soc/fsl/p1022_ds.c b/sound/soc/fsl/p1022_ds.c
index e8849ed36cbd..2c064a9824ad 100644
--- a/sound/soc/fsl/p1022_ds.c
+++ b/sound/soc/fsl/p1022_ds.c
@@ -506,7 +506,7 @@ static int p1022_ds_probe(struct platform_device *pdev)
506 506
507error: 507error:
508 if (sound_device) 508 if (sound_device)
509 platform_device_unregister(sound_device); 509 platform_device_put(sound_device);
510 510
511 kfree(mdata); 511 kfree(mdata);
512error_put: 512error_put: