Commit 9778e9a0eafe796c2affcd1fa1fa8a3765e026e6
Committed by
Takashi Iwai
1 parent
ec2cd95f34
Exists in
master
and in
4 other branches
ALSA: ASoC: Fix another cs4270 error path
Conversion to new-style i2c driver missed the error path of the probe function. Fix it. Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Timur Tabi <timur@freescale.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Showing 1 changed file with 1 additions and 6 deletions Side-by-side Diff
sound/soc/codecs/cs4270.c
... | ... | @@ -610,16 +610,11 @@ |
610 | 610 | return 0; |
611 | 611 | |
612 | 612 | error: |
613 | - if (codec->control_data) { | |
614 | - i2c_detach_client(i2c_client); | |
615 | - codec->control_data = NULL; | |
616 | - } | |
613 | + codec->control_data = NULL; | |
617 | 614 | |
618 | 615 | kfree(codec->reg_cache); |
619 | 616 | codec->reg_cache = NULL; |
620 | 617 | codec->reg_cache_size = 0; |
621 | - | |
622 | - kfree(i2c_client); | |
623 | 618 | |
624 | 619 | return ret; |
625 | 620 | } |