summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@ti.com>2018-04-09 11:45:39 +0300
committerLee Jones <lee.jones@linaro.org>2018-05-16 09:21:48 +0100
commitc218b3b242bd04539621b468f01ecd2af5a21a45 (patch)
tree5d8ca1b635e3714a0bd8ae775b5009c948e98426 /drivers
parentfab54649fd9c3eb27fb5aecc583a35a7cdc4599d (diff)
downloadlinux-stable-c218b3b242bd04539621b468f01ecd2af5a21a45.tar.gz
linux-stable-c218b3b242bd04539621b468f01ecd2af5a21a45.tar.bz2
linux-stable-c218b3b242bd04539621b468f01ecd2af5a21a45.zip
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: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mfd/twl-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c
index d3133a371e27..c649344fd7f2 100644
--- a/drivers/mfd/twl-core.c
+++ b/drivers/mfd/twl-core.c
@@ -1177,7 +1177,7 @@ twl_probe(struct i2c_client *client, const struct i2c_device_id *id)
twl_priv->ready = true;
/* setup clock framework */
- clocks_init(&pdev->dev, pdata ? pdata->clock : NULL);
+ clocks_init(&client->dev, pdata ? pdata->clock : NULL);
/* read TWL IDCODE Register */
if (twl_class_is_4030()) {