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 @@ -367,9 +367,9 @@ static inline int max8660_pdata_from_dt(struct device *dev,
367
367
}
368
368
#endif
369
369
370
- static int max8660_probe (struct i2c_client * client ,
371
- const struct i2c_device_id * i2c_id )
370
+ static int max8660_probe (struct i2c_client * client )
372
371
{
372
+ const struct i2c_device_id * i2c_id = i2c_client_get_device_id (client );
373
373
struct device * dev = & client -> dev ;
374
374
struct max8660_platform_data pdata_of , * pdata = dev_get_platdata (dev );
375
375
struct regulator_config config = { };
@@ -503,7 +503,7 @@ static const struct i2c_device_id max8660_id[] = {
503
503
MODULE_DEVICE_TABLE (i2c , max8660_id );
504
504
505
505
static struct i2c_driver max8660_driver = {
506
- .probe = max8660_probe ,
506
+ .probe_new = max8660_probe ,
507
507
.driver = {
508
508
.name = "max8660" ,
509
509
},
You can’t perform that action at this time.
0 commit comments