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 <wsa+renesas@sang-engineering.com> Acked-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
6d7e0a3420
commit
624d1be7a1
|
@ -323,7 +323,7 @@ static void do_attach(struct i2c_adapter *adapter)
|
||||||
of_node_put(np);
|
of_node_put(np);
|
||||||
} else {
|
} else {
|
||||||
strlcpy(info.type, "MAC,ds1775", I2C_NAME_SIZE);
|
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");
|
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);
|
of_node_put(np);
|
||||||
} else {
|
} else {
|
||||||
strlcpy(info.type, "MAC,adm1030", I2C_NAME_SIZE);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue