ASoC: rt*: use simple i2c probe function
[sfrench/cifs-2.6.git] / sound / soc / codecs / rt5665.c
index 33e889802ff807c7568a320bb3f73e57e441d602..4a8d62e1dd2b59926700691acb5f4d055c44720f 100644 (file)
@@ -4757,8 +4757,7 @@ static void rt5665_calibrate_handler(struct work_struct *work)
        rt5665_calibrate(rt5665);
 }
 
-static int rt5665_i2c_probe(struct i2c_client *i2c,
-                   const struct i2c_device_id *id)
+static int rt5665_i2c_probe(struct i2c_client *i2c)
 {
        struct rt5665_platform_data *pdata = dev_get_platdata(&i2c->dev);
        struct rt5665_priv *rt5665;
@@ -4970,7 +4969,7 @@ static struct i2c_driver rt5665_i2c_driver = {
                .of_match_table = of_match_ptr(rt5665_of_match),
                .acpi_match_table = ACPI_PTR(rt5665_acpi_match),
        },
-       .probe = rt5665_i2c_probe,
+       .probe_new = rt5665_i2c_probe,
        .shutdown = rt5665_i2c_shutdown,
        .id_table = rt5665_i2c_id,
 };