diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-11-28 13:45:24 +0200 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-12-03 21:40:02 +0200 |
commit | 1aaeae493aad4d71f75f4129e676fbfcdf8b1422 (patch) | |
tree | 6fe20891db2450fcacecaf05544249e6836a57fa | |
parent | 41daf985820c72b6768512943dab23f5f41ef865 (diff) | |
download | linux-1aaeae493aad4d71f75f4129e676fbfcdf8b1422.tar.gz linux-1aaeae493aad4d71f75f4129e676fbfcdf8b1422.tar.bz2 linux-1aaeae493aad4d71f75f4129e676fbfcdf8b1422.zip |
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | drivers/platform/x86/i2c-multi-instantiate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/i2c-multi-instantiate.c b/drivers/platform/x86/i2c-multi-instantiate.c index e3345da82c84..16a0eabe1e31 100644 --- a/drivers/platform/x86/i2c-multi-instantiate.c +++ b/drivers/platform/x86/i2c-multi-instantiate.c @@ -75,7 +75,7 @@ static int i2c_multi_inst_probe(struct platform_device *pdev) if (IS_ERR(multi->clients[i])) ret = PTR_ERR(multi->clients[i]); else if (!multi->clients[i]) - ret = -ENODEV; + ret = -EPROBE_DEFER; /* Wait for i2c-adapter to load */ else ret = 0; if (ret) { |