projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fab5464
)
mfd: twl-core: Fix clock initialization
author
Peter Ujfalusi
<
[email protected]
>
Mon, 9 Apr 2018 08:45:39 +0000
(11:45 +0300)
committer
Lee Jones
<
[email protected]
>
Wed, 16 May 2018 08:21:48 +0000
(09:21 +0100)
When looking up the clock we must use the client->dev as device since that
is the one which is probed via DT.
Cc:
[email protected]
# 4.16+
Signed-off-by: Peter Ujfalusi <
[email protected]
>
Signed-off-by: Lee Jones <
[email protected]
>
drivers/mfd/twl-core.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/twl-core.c
b/drivers/mfd/twl-core.c
index d3133a371e277f0bd8f20bcafa648c5f41ebf180..c649344fd7f25543a676a89455f61a68893a289e 100644
(file)
--- 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()) {