Get rid of 'remove_new' relic from platform driver struct
The continual trickle of small conversion patches is grating on me, and is really not helping. Just get rid of the 'remove_new' member function, which is just an alias for the plain 'remove', and had a comment to that effect: /* * .remove_new() is a relic from a prototype conversion of .remove(). * New drivers are supposed to implement .remove(). Once all drivers are * converted to not use .remove_new any more, it will be dropped. */ This was just a tree-wide 'sed' script that replaced '.remove_new' with '.remove', with some care taken to turn a subsequent tab into two tabs to make things line up. I did do some minimal manual whitespace adjustment for places that used spaces to line things up. Then I just removed the old (sic) .remove_new member function, and this is the end result. No more unnecessary conversion noise. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -284,7 +284,7 @@ MODULE_DEVICE_TABLE(of, cbas_ec_of_match);
|
||||
|
||||
static struct platform_driver cbas_ec_driver = {
|
||||
.probe = cbas_ec_probe,
|
||||
.remove_new = cbas_ec_remove,
|
||||
.remove = cbas_ec_remove,
|
||||
.driver = {
|
||||
.name = "cbas_ec",
|
||||
.acpi_match_table = ACPI_PTR(cbas_ec_acpi_ids),
|
||||
|
||||
@@ -1065,7 +1065,7 @@ static struct platform_driver hid_sensor_custom_platform_driver = {
|
||||
.name = KBUILD_MODNAME,
|
||||
},
|
||||
.probe = hid_sensor_custom_probe,
|
||||
.remove_new = hid_sensor_custom_remove,
|
||||
.remove = hid_sensor_custom_remove,
|
||||
};
|
||||
module_platform_driver(hid_sensor_custom_platform_driver);
|
||||
|
||||
|
||||
@@ -284,7 +284,7 @@ MODULE_DEVICE_TABLE(acpi, surface_kbd_match);
|
||||
|
||||
static struct platform_driver surface_kbd_driver = {
|
||||
.probe = surface_kbd_probe,
|
||||
.remove_new = surface_kbd_remove,
|
||||
.remove = surface_kbd_remove,
|
||||
.driver = {
|
||||
.name = "surface_keyboard",
|
||||
.acpi_match_table = surface_kbd_match,
|
||||
|
||||
Reference in New Issue
Block a user