File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -586,9 +586,9 @@ static const struct of_device_id of_max8973_match_tbl[] = {
586
586
};
587
587
MODULE_DEVICE_TABLE (of , of_max8973_match_tbl );
588
588
589
- static int max8973_probe (struct i2c_client * client ,
590
- const struct i2c_device_id * id )
589
+ static int max8973_probe (struct i2c_client * client )
591
590
{
591
+ const struct i2c_device_id * id = i2c_client_get_device_id (client );
592
592
struct max8973_regulator_platform_data * pdata ;
593
593
struct regulator_init_data * ridata ;
594
594
struct regulator_config config = { };
@@ -806,7 +806,7 @@ static struct i2c_driver max8973_i2c_driver = {
806
806
.name = "max8973" ,
807
807
.of_match_table = of_max8973_match_tbl ,
808
808
},
809
- .probe = max8973_probe ,
809
+ .probe_new = max8973_probe ,
810
810
.id_table = max8973_id ,
811
811
};
812
812
You can’t perform that action at this time.
0 commit comments