platform/x86: i2c-multi-instantiate: Accept errors of i2c_acpi_new_device()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 28 Nov 2018 11:45:23 +0000 (13:45 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Dec 2018 19:40:01 +0000 (21:40 +0200)
commit41daf985820c72b6768512943dab23f5f41ef865
treea6a52deef0770db36f38d818a227a66f3f98d6bd
parent5ae9ce13261490e0c65d7012c366bdd3cc9e2d77
platform/x86: i2c-multi-instantiate: Accept errors of i2c_acpi_new_device()

In the future i2c_acpi_new_device() will return error pointer in some cases.
Prepare i2c-multi-instantiate driver to support that.

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>
drivers/platform/x86/i2c-multi-instantiate.c