hwmon: use simple i2c probe function
[linux-block.git] / drivers / hwmon / amc6821.c
index 013fb056b1d026b5ff8c776a1e9aeef1d6127478..6b1ce2242c6187619e49c4cff77c8f5779c88a83 100644 (file)
@@ -900,8 +900,7 @@ static int amc6821_init_client(struct i2c_client *client)
        return 0;
 }
 
-static int amc6821_probe(struct i2c_client *client,
-                        const struct i2c_device_id *id)
+static int amc6821_probe(struct i2c_client *client)
 {
        struct device *dev = &client->dev;
        struct amc6821_data *data;
@@ -940,7 +939,7 @@ static struct i2c_driver amc6821_driver = {
        .driver = {
                .name   = "amc6821",
        },
-       .probe = amc6821_probe,
+       .probe_new = amc6821_probe,
        .id_table = amc6821_id,
        .detect = amc6821_detect,
        .address_list = normal_i2c,