diff options
Diffstat (limited to 'drivers/of/unittest.c')
-rw-r--r-- | drivers/of/unittest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 3832a5de4602..e6b175370f2e 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c | |||
@@ -1946,7 +1946,7 @@ static int unittest_i2c_mux_probe(struct i2c_client *client, | |||
1946 | { | 1946 | { |
1947 | int i, nchans; | 1947 | int i, nchans; |
1948 | struct device *dev = &client->dev; | 1948 | struct device *dev = &client->dev; |
1949 | struct i2c_adapter *adap = to_i2c_adapter(dev->parent); | 1949 | struct i2c_adapter *adap = client->adapter; |
1950 | struct device_node *np = client->dev.of_node, *child; | 1950 | struct device_node *np = client->dev.of_node, *child; |
1951 | struct i2c_mux_core *muxc; | 1951 | struct i2c_mux_core *muxc; |
1952 | u32 reg, max_reg; | 1952 | u32 reg, max_reg; |