File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ static int cbas_ec_probe(struct platform_device *pdev)
255
255
return retval ;
256
256
}
257
257
258
- static int cbas_ec_remove (struct platform_device * pdev )
258
+ static void cbas_ec_remove (struct platform_device * pdev )
259
259
{
260
260
struct cros_ec_device * ec = dev_get_drvdata (pdev -> dev .parent );
261
261
@@ -266,7 +266,6 @@ static int cbas_ec_remove(struct platform_device *pdev)
266
266
cbas_ec_set_input (NULL );
267
267
268
268
mutex_unlock (& cbas_ec_reglock );
269
- return 0 ;
270
269
}
271
270
272
271
static const struct acpi_device_id cbas_ec_acpi_ids [] = {
@@ -285,7 +284,7 @@ MODULE_DEVICE_TABLE(of, cbas_ec_of_match);
285
284
286
285
static struct platform_driver cbas_ec_driver = {
287
286
.probe = cbas_ec_probe ,
288
- .remove = cbas_ec_remove ,
287
+ .remove_new = cbas_ec_remove ,
289
288
.driver = {
290
289
.name = "cbas_ec" ,
291
290
.acpi_match_table = ACPI_PTR (cbas_ec_acpi_ids ),
Original file line number Diff line number Diff line change @@ -1031,23 +1031,21 @@ static int hid_sensor_custom_probe(struct platform_device *pdev)
1031
1031
return ret ;
1032
1032
}
1033
1033
1034
- static int hid_sensor_custom_remove (struct platform_device * pdev )
1034
+ static void hid_sensor_custom_remove (struct platform_device * pdev )
1035
1035
{
1036
1036
struct hid_sensor_custom * sensor_inst = platform_get_drvdata (pdev );
1037
1037
struct hid_sensor_hub_device * hsdev = pdev -> dev .platform_data ;
1038
1038
1039
1039
if (sensor_inst -> custom_pdev ) {
1040
1040
platform_device_unregister (sensor_inst -> custom_pdev );
1041
- return 0 ;
1041
+ return ;
1042
1042
}
1043
1043
1044
1044
hid_sensor_custom_dev_if_remove (sensor_inst );
1045
1045
hid_sensor_custom_remove_attributes (sensor_inst );
1046
1046
sysfs_remove_group (& sensor_inst -> pdev -> dev .kobj ,
1047
1047
& enable_sensor_attr_group );
1048
1048
sensor_hub_remove_callback (hsdev , hsdev -> usage );
1049
-
1050
- return 0 ;
1051
1049
}
1052
1050
1053
1051
static const struct platform_device_id hid_sensor_custom_ids [] = {
@@ -1067,7 +1065,7 @@ static struct platform_driver hid_sensor_custom_platform_driver = {
1067
1065
.name = KBUILD_MODNAME ,
1068
1066
},
1069
1067
.probe = hid_sensor_custom_probe ,
1070
- .remove = hid_sensor_custom_remove ,
1068
+ .remove_new = hid_sensor_custom_remove ,
1071
1069
};
1072
1070
module_platform_driver (hid_sensor_custom_platform_driver );
1073
1071
Original file line number Diff line number Diff line change @@ -271,10 +271,9 @@ static int surface_kbd_probe(struct platform_device *pdev)
271
271
return surface_hid_device_add (shid );
272
272
}
273
273
274
- static int surface_kbd_remove (struct platform_device * pdev )
274
+ static void surface_kbd_remove (struct platform_device * pdev )
275
275
{
276
276
surface_hid_device_destroy (platform_get_drvdata (pdev ));
277
- return 0 ;
278
277
}
279
278
280
279
static const struct acpi_device_id surface_kbd_match [] = {
@@ -285,7 +284,7 @@ MODULE_DEVICE_TABLE(acpi, surface_kbd_match);
285
284
286
285
static struct platform_driver surface_kbd_driver = {
287
286
.probe = surface_kbd_probe ,
288
- .remove = surface_kbd_remove ,
287
+ .remove_new = surface_kbd_remove ,
289
288
.driver = {
290
289
.name = "surface_keyboard" ,
291
290
.acpi_match_table = surface_kbd_match ,
You can’t perform that action at this time.
0 commit comments