[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180405114636.16294-1-peter.ujfalusi@ti.com>
Date: Thu, 5 Apr 2018 14:46:36 +0300
From: Peter Ujfalusi <peter.ujfalusi@...com>
To: <tony@...mide.com>, <lee.jones@...aro.org>
CC: <linux-omap@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<hns@...delico.com>, <stable@...r.kernel.org>
Subject: [PATCH] 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.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@...com>
Cc: stable@...r.kernel.org
Fixes: 7e2e6c5758de9 ("mfd: twl-core: Do not create dummy pdata when booted with DT")
---
drivers/mfd/twl-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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()) {
--
Peter
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Powered by blists - more mailing lists