i2c: Drop the kind parameter from detect callbacks
[cascardo/linux.git] / drivers / i2c / i2c-core.c
index 4f34823..c1047d6 100644 (file)
@@ -1184,7 +1184,7 @@ static int i2c_detect_address(struct i2c_client *temp_client,
        /* Finally call the custom detection function */
        memset(&info, 0, sizeof(struct i2c_board_info));
        info.addr = addr;
-       err = driver->detect(temp_client, -1, &info);
+       err = driver->detect(temp_client, &info);
        if (err) {
                /* -ENODEV is returned if the detection fails. We catch it
                   here as this isn't an error. */