|
@@ -201,10 +201,11 @@ static int pca954x_probe(struct i2c_client *client,
|
|
|
|
|
|
i2c_set_clientdata(client, data);
|
|
|
|
|
|
- /* Read the mux register at addr to verify
|
|
|
- * that the mux is in fact present.
|
|
|
+ /* Write the mux register at addr to verify
|
|
|
+ * that the mux is in fact present. This also
|
|
|
+ * initializes the mux to disconnected state.
|
|
|
*/
|
|
|
- if (i2c_smbus_read_byte(client) < 0) {
|
|
|
+ if (i2c_smbus_write_byte(client, 0) < 0) {
|
|
|
dev_warn(&client->dev, "probe failed\n");
|
|
|
goto exit_free;
|
|
|
}
|