diff options
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r-- | sound/soc/fsl/mpc8610_hpcd.c | 2 | ||||
-rw-r--r-- | sound/soc/fsl/p1022_ds.c | 2 |
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 | ||
507 | error_sound: | 507 | error_sound: |
508 | platform_device_unregister(sound_device); | 508 | platform_device_put(sound_device); |
509 | error: | 509 | error: |
510 | kfree(machine_data); | 510 | kfree(machine_data); |
511 | error_alloc: | 511 | error_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 | ||
507 | error: | 507 | error: |
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); |
512 | error_put: | 512 | error_put: |