Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i2c: i2c-mux-gpio: remove error messages for probe deferrals

Probe deferral is not an error case. It happens only when
the necessary dependencies are not there yet.

The driver core is already printing a message when a driver
requests probe deferral, so this can be traced in the logs
without these error prints.

This patch removes the error messages for these deferral cases.

Signed-off-by: Ionut Nicu <ioan.nicu.ext@nokia.com>
Acked-by: Alexander Sverdlin <alexander.sverdlin@nokia.com>
Acked-by: Peter Korsgaard <peter.korsgaard@barco.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>

authored by

Ioan Nicu and committed by
Wolfram Sang
623e4ecb ba92222e

+3 -7
+3 -7
drivers/i2c/muxes/i2c-mux-gpio.c
··· 76 76 return -ENODEV; 77 77 } 78 78 adapter = of_find_i2c_adapter_by_node(adapter_np); 79 - if (!adapter) { 80 - dev_err(&pdev->dev, "Cannot find parent bus\n"); 79 + if (!adapter) 81 80 return -EPROBE_DEFER; 82 - } 81 + 83 82 mux->data.parent = i2c_adapter_id(adapter); 84 83 put_device(&adapter->dev); 85 84 ··· 176 177 } 177 178 178 179 parent = i2c_get_adapter(mux->data.parent); 179 - if (!parent) { 180 - dev_err(&pdev->dev, "Parent adapter (%d) not found\n", 181 - mux->data.parent); 180 + if (!parent) 182 181 return -EPROBE_DEFER; 183 - } 184 182 185 183 mux->parent = parent; 186 184 mux->gpio_base = gpio_base;