mfd: wcd934x: Drop kfree for memory allocated with devm_kzalloc
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 27 Apr 2020 12:29:22 +0000 (12:29 +0000)
committerLee Jones <lee.jones@linaro.org>
Tue, 26 May 2020 09:51:21 +0000 (10:51 +0100)
commit652b7b6740eb52d98377a881c7730e36997f00ab
treee6a50903008b758d10a3f4fb0f1784e5f4039884
parent97eda5dcc2cde5dcc778bef7a9344db3b6bf8ef5
mfd: wcd934x: Drop kfree for memory allocated with devm_kzalloc

It's not necessary to free memory allocated with devm_kzalloc
and using kfree leads to a double free.

Fixes: 6ac7e4d7ad70 ("mfd: wcd934x: Add support to wcd9340/wcd9341 codec")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/wcd934x.c