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 @@ -836,9 +836,9 @@ static const struct attribute_group adp8870_bl_attr_group = {
836
836
.attrs = adp8870_bl_attributes ,
837
837
};
838
838
839
- static int adp8870_probe (struct i2c_client * client ,
840
- const struct i2c_device_id * id )
839
+ static int adp8870_probe (struct i2c_client * client )
841
840
{
841
+ const struct i2c_device_id * id = i2c_client_get_device_id (client );
842
842
struct backlight_properties props ;
843
843
struct backlight_device * bl ;
844
844
struct adp8870_bl * data ;
@@ -973,7 +973,7 @@ static struct i2c_driver adp8870_driver = {
973
973
.name = KBUILD_MODNAME ,
974
974
.pm = & adp8870_i2c_pm_ops ,
975
975
},
976
- .probe = adp8870_probe ,
976
+ .probe_new = adp8870_probe ,
977
977
.remove = adp8870_remove ,
978
978
.id_table = adp8870_id ,
979
979
};
You can’t perform that action at this time.
0 commit comments