From: Wolfram Sang Date: Thu, 26 Mar 2020 21:09:51 +0000 (+0100) Subject: platform/chrome: chromeos_laptop: make I2C API conversion complete X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b2057c64017e96f1f9471fe49569508711f7663f;p=linux.git platform/chrome: chromeos_laptop: make I2C API conversion complete When converting to i2c_new_scanned_device(), it was overlooked that a conversion to i2c_new_client_device() was also needed. Fix it. Fixes: c82ebf1bf738 ("platform/chrome: chromeos_laptop: Convert to i2c_new_scanned_device") Signed-off-by: Wolfram Sang Signed-off-by: Enric Balletbo i Serra --- diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c index 4f3651fcd9fed..472a03daa8693 100644 --- a/drivers/platform/chrome/chromeos_laptop.c +++ b/drivers/platform/chrome/chromeos_laptop.c @@ -103,7 +103,7 @@ chromes_laptop_instantiate_i2c_device(struct i2c_adapter *adapter, pr_debug("%d-%02x is probed at %02x\n", adapter->nr, info->addr, dummy->addr); i2c_unregister_device(dummy); - client = i2c_new_device(adapter, info); + client = i2c_new_client_device(adapter, info); } }