mfd: motorola-cpcap: Use devm_of_platform_populate()
authorBenjamin Gaignard <benjamin.gaignard@linaro.org>
Mon, 29 May 2017 15:45:58 +0000 (17:45 +0200)
committerLee Jones <lee.jones@linaro.org>
Thu, 6 Jul 2017 07:29:12 +0000 (08:29 +0100)
commit9bf2db7834993b776707618ab5828265100bf3fd
tree6a47e5931a344e3a952ba28b89217ee978950c43
parent66002163f047884b8f245eb85249144e43168b92
mfd: motorola-cpcap: Use devm_of_platform_populate()

Usage of  devm_of_platform_populate() simplify driver code
by allowing to delete cpcap_remove().

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/motorola-cpcap.c