[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <m3o9a2hni5.fsf@t19.piap.pl>
Date: Mon, 03 Dec 2018 12:13:06 +0100
From: khalasa@...p.pl (Krzysztof HaĆasa)
To: lkml <linux-kernel@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
linux-i2c@...r.kernel.org, Lucas Stach <l.stach@...gutronix.de>
Subject: [PATCH] ARM i.MX: Fix a kernel panic in i2c_imx_clk_notifier_call().
Signed-off-by: Krzysztof Halasa <khalasa@...p.pl>
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -510,9 +510,9 @@ static int i2c_imx_clk_notifier_call(struct notifier_block *nb,
unsigned long action, void *data)
{
struct clk_notifier_data *ndata = data;
- struct imx_i2c_struct *i2c_imx = container_of(&ndata->clk,
+ struct imx_i2c_struct *i2c_imx = container_of(nb,
struct imx_i2c_struct,
- clk);
+ clk_change_nb);
if (action & POST_RATE_CHANGE)
i2c_imx_set_clk(i2c_imx, ndata->new_rate);
Powered by blists - more mailing lists