diff options
Diffstat (limited to 'drivers/i2c/muxes/i2c-mux-gpio.c')
-rw-r--r-- | drivers/i2c/muxes/i2c-mux-gpio.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index f5798eb4076b..70db99264339 100644 --- a/drivers/i2c/muxes/i2c-mux-gpio.c +++ b/drivers/i2c/muxes/i2c-mux-gpio.c | |||
@@ -76,10 +76,9 @@ static int i2c_mux_gpio_probe_dt(struct gpiomux *mux, | |||
76 | return -ENODEV; | 76 | return -ENODEV; |
77 | } | 77 | } |
78 | adapter = of_find_i2c_adapter_by_node(adapter_np); | 78 | adapter = of_find_i2c_adapter_by_node(adapter_np); |
79 | if (!adapter) { | 79 | if (!adapter) |
80 | dev_err(&pdev->dev, "Cannot find parent bus\n"); | ||
81 | return -EPROBE_DEFER; | 80 | return -EPROBE_DEFER; |
82 | } | 81 | |
83 | mux->data.parent = i2c_adapter_id(adapter); | 82 | mux->data.parent = i2c_adapter_id(adapter); |
84 | put_device(&adapter->dev); | 83 | put_device(&adapter->dev); |
85 | 84 | ||
@@ -177,11 +176,8 @@ static int i2c_mux_gpio_probe(struct platform_device *pdev) | |||
177 | } | 176 | } |
178 | 177 | ||
179 | parent = i2c_get_adapter(mux->data.parent); | 178 | parent = i2c_get_adapter(mux->data.parent); |
180 | if (!parent) { | 179 | if (!parent) |
181 | dev_err(&pdev->dev, "Parent adapter (%d) not found\n", | ||
182 | mux->data.parent); | ||
183 | return -EPROBE_DEFER; | 180 | return -EPROBE_DEFER; |
184 | } | ||
185 | 181 | ||
186 | mux->parent = parent; | 182 | mux->parent = parent; |
187 | mux->gpio_base = gpio_base; | 183 | mux->gpio_base = gpio_base; |