Commit 1aaeae49 authored by Andy Shevchenko's avatar Andy Shevchenko

platform/x86: i2c-multi-instantiate: Defer probe when no adapter found

Likewise the rest of the i2c_acpi_new_device() users, defer the probe
of the i2c-multi-intantiate driver in case adapter is not yet found.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 41daf985
...@@ -75,7 +75,7 @@ static int i2c_multi_inst_probe(struct platform_device *pdev) ...@@ -75,7 +75,7 @@ static int i2c_multi_inst_probe(struct platform_device *pdev)
if (IS_ERR(multi->clients[i])) if (IS_ERR(multi->clients[i]))
ret = PTR_ERR(multi->clients[i]); ret = PTR_ERR(multi->clients[i]);
else if (!multi->clients[i]) else if (!multi->clients[i])
ret = -ENODEV; ret = -EPROBE_DEFER; /* Wait for i2c-adapter to load */
else else
ret = 0; ret = 0;
if (ret) { if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment