--- zzzz-none-000/linux-3.10.107/drivers/mfd/pcf50633-adc.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/drivers/mfd/pcf50633-adc.c 2021-02-04 17:41:59.000000000 +0000 @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include @@ -203,7 +202,7 @@ { struct pcf50633_adc *adc; - adc = kzalloc(sizeof(*adc), GFP_KERNEL); + adc = devm_kzalloc(&pdev->dev, sizeof(*adc), GFP_KERNEL); if (!adc) return -ENOMEM; @@ -236,7 +235,6 @@ kfree(adc->queue[i]); mutex_unlock(&adc->queue_mutex); - kfree(adc); return 0; }