summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-cdce706.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clk/clk-cdce706.c')
-rw-r--r--drivers/clk/clk-cdce706.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-cdce706.c b/drivers/clk/clk-cdce706.c
index 0443dfc82794..239102e37e2f 100644
--- a/drivers/clk/clk-cdce706.c
+++ b/drivers/clk/clk-cdce706.c
@@ -630,7 +630,7 @@ of_clk_cdce_get(struct of_phandle_args *clkspec, void *data)
static int cdce706_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
- struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
+ struct i2c_adapter *adapter = client->adapter;
struct cdce706_dev_data *cdce;
int ret;