hwmon: use simple i2c probe function
[linux-2.6-microblaze.git] / drivers / hwmon / gl518sm.c
index 4964bee..7aaee5a 100644 (file)
@@ -611,8 +611,7 @@ static void gl518_init_client(struct i2c_client *client)
        gl518_write_value(client, GL518_REG_CONF, 0x40 | regvalue);
 }
 
-static int gl518_probe(struct i2c_client *client,
-                      const struct i2c_device_id *id)
+static int gl518_probe(struct i2c_client *client)
 {
        struct device *dev = &client->dev;
        struct device *hwmon_dev;
@@ -653,7 +652,7 @@ static struct i2c_driver gl518_driver = {
        .driver = {
                .name   = "gl518sm",
        },
-       .probe          = gl518_probe,
+       .probe_new      = gl518_probe,
        .id_table       = gl518_id,
        .detect         = gl518_detect,
        .address_list   = normal_i2c,