File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -394,8 +394,9 @@ static int lp855x_parse_acpi(struct lp855x *lp)
394
394
return 0 ;
395
395
}
396
396
397
- static int lp855x_probe (struct i2c_client * cl , const struct i2c_device_id * id )
397
+ static int lp855x_probe (struct i2c_client * cl )
398
398
{
399
+ const struct i2c_device_id * id = i2c_client_get_device_id (cl );
399
400
const struct acpi_device_id * acpi_id = NULL ;
400
401
struct device * dev = & cl -> dev ;
401
402
struct lp855x * lp ;
@@ -586,7 +587,7 @@ static struct i2c_driver lp855x_driver = {
586
587
.of_match_table = of_match_ptr (lp855x_dt_ids ),
587
588
.acpi_match_table = ACPI_PTR (lp855x_acpi_match ),
588
589
},
589
- .probe = lp855x_probe ,
590
+ .probe_new = lp855x_probe ,
590
591
.remove = lp855x_remove ,
591
592
.id_table = lp855x_ids ,
592
593
};
You can’t perform that action at this time.
0 commit comments