Commit c218b3b242bd04539621b468f01ecd2af5a21a45
Committed by
Lee Jones
1 parent
fab54649fd
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/mfd/twl-core.c
... | ... | @@ -1177,7 +1177,7 @@ |
1177 | 1177 | twl_priv->ready = true; |
1178 | 1178 | |
1179 | 1179 | /* setup clock framework */ |
1180 | - clocks_init(&pdev->dev, pdata ? pdata->clock : NULL); | |
1180 | + clocks_init(&client->dev, pdata ? pdata->clock : NULL); | |
1181 | 1181 | |
1182 | 1182 | /* read TWL IDCODE Register */ |
1183 | 1183 | if (twl_class_is_4030()) { |