From: Wolfram Sang Date: Mon, 10 Feb 2020 17:04:01 +0000 (+0100) Subject: macintosh: convert to i2c_new_scanned_device X-Git-Tag: v5.7-rc1~115^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=624d1be7a126640a1ea95fa8373d4ce9e7b106d0;p=thirdparty%2Fkernel%2Flinux.git macintosh: convert to i2c_new_scanned_device Move from the deprecated i2c_new_probed_device() to the new i2c_new_scanned_device(). No functional change for this driver because it doesn't check the return code anyhow. Signed-off-by: Wolfram Sang Acked-by: Michael Ellerman --- diff --git a/drivers/macintosh/therm_windtunnel.c b/drivers/macintosh/therm_windtunnel.c index a0d87ed9da696..f55f6adf5e5ff 100644 --- a/drivers/macintosh/therm_windtunnel.c +++ b/drivers/macintosh/therm_windtunnel.c @@ -323,7 +323,7 @@ static void do_attach(struct i2c_adapter *adapter) of_node_put(np); } else { strlcpy(info.type, "MAC,ds1775", I2C_NAME_SIZE); - i2c_new_probed_device(adapter, &info, scan_ds1775, NULL); + i2c_new_scanned_device(adapter, &info, scan_ds1775, NULL); } np = of_find_compatible_node(adapter->dev.of_node, NULL, "MAC,adm1030"); @@ -331,7 +331,7 @@ static void do_attach(struct i2c_adapter *adapter) of_node_put(np); } else { strlcpy(info.type, "MAC,adm1030", I2C_NAME_SIZE); - i2c_new_probed_device(adapter, &info, scan_adm1030, NULL); + i2c_new_scanned_device(adapter, &info, scan_adm1030, NULL); } }