mfd: sm501: Fix mismatches of request_mem_region
authorChuhong Yuan <hslester96@gmail.com>
Sat, 16 Nov 2019 15:13:08 +0000 (23:13 +0800)
committerLee Jones <lee.jones@linaro.org>
Fri, 24 Jan 2020 07:33:56 +0000 (07:33 +0000)
commitb88aa8509828b56919b3cb0901803354fc156320
tree8237c9182b3980775a4bc896b6fc1598c230250c
parentf2a19c5b78670af5986ab0a625631f8f8a6adac1
mfd: sm501: Fix mismatches of request_mem_region

This driver misuses release_resource + kfree to match request_mem_region,
which is incorrect.
The right way is to use release_mem_region.
Replace the mismatched calls with the right ones to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/sm501.c