Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea3993a9 authored by Axel Lin's avatar Axel Lin Committed by Lee Jones
Browse files

mfd: lp87565: Convert to use devm_mfd_add_devices()



This fixes missing mfd_remove_devices() call when unload the module.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Reviewed-by: default avatarKeerthy <j-keerthy@ti.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 9bbf6a15
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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[] = {