diff options
author | Axel Lin <axel.lin@ingics.com> | 2017-07-30 18:58:15 +0800 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2017-09-05 08:46:01 +0100 |
commit | ea3993a9bdb77375a91e88b5e5f853474b095dd5 (patch) | |
tree | 09971cdacec96fb8c9b2dc35fd954aaa406f6997 /drivers/mfd | |
parent | 9bbf6a15ce19dd947b7fa6ad4095931ab3682da8 (diff) |
mfd: lp87565: Convert to use devm_mfd_add_devices()
This fixes missing mfd_remove_devices() call when unload the module.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/lp87565.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/mfd/lp87565.c b/drivers/mfd/lp87565.c index 340ad0c63744..32d2a07d4354 100644 --- a/drivers/mfd/lp87565.c +++ b/drivers/mfd/lp87565.c @@ -73,10 +73,9 @@ static int lp87565_probe(struct i2c_client *client, i2c_set_clientdata(client, lp87565); - ret = mfd_add_devices(lp87565->dev, PLATFORM_DEVID_AUTO, lp87565_cells, - ARRAY_SIZE(lp87565_cells), NULL, 0, NULL); - - return ret; + return devm_mfd_add_devices(lp87565->dev, PLATFORM_DEVID_AUTO, + lp87565_cells, ARRAY_SIZE(lp87565_cells), + NULL, 0, NULL); } static const struct i2c_device_id lp87565_id_table[] = { |