Commit c218b3b2 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Lee Jones

mfd: twl-core: Fix clock initialization

When looking up the clock we must use the client->dev as device since that
is the one which is probed via DT.

Cc: stable@vger.kernel.org # 4.16+
Signed-off-by: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent fab54649
...@@ -1177,7 +1177,7 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -1177,7 +1177,7 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id)
twl_priv->ready = true; twl_priv->ready = true;
/* setup clock framework */ /* setup clock framework */
clocks_init(&pdev->dev, pdata ? pdata->clock : NULL); clocks_init(&client->dev, pdata ? pdata->clock : NULL);
/* read TWL IDCODE Register */ /* read TWL IDCODE Register */
if (twl_class_is_4030()) { if (twl_class_is_4030()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment