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:
Linus Torvalds
2024-12-01 15:12:43 -08:00
parent 40384c840e
commit e70140ba0d
474 changed files with 484 additions and 494 deletions

View File

@@ -499,7 +499,7 @@ static struct platform_driver therm_of_driver = {
.of_match_table = therm_of_match,
},
.probe = therm_of_probe,
.remove_new = therm_of_remove,
.remove = therm_of_remove,
};
struct apple_thermal_info {

View File

@@ -669,7 +669,7 @@ static void wf_pm112_remove(struct platform_device *dev)
static struct platform_driver wf_pm112_driver = {
.probe = wf_pm112_probe,
.remove_new = wf_pm112_remove,
.remove = wf_pm112_remove,
.driver = {
.name = "windfarm",
},

View File

@@ -999,7 +999,7 @@ static void pm121_remove(struct platform_device *ddev)
static struct platform_driver pm121_driver = {
.probe = pm121_probe,
.remove_new = pm121_remove,
.remove = pm121_remove,
.driver = {
.name = "windfarm",
.bus = &platform_bus_type,

View File

@@ -782,7 +782,7 @@ static void wf_pm72_remove(struct platform_device *dev)
static struct platform_driver wf_pm72_driver = {
.probe = wf_pm72_probe,
.remove_new = wf_pm72_remove,
.remove = wf_pm72_remove,
.driver = {
.name = "windfarm",
},

View File

@@ -765,7 +765,7 @@ static void wf_smu_remove(struct platform_device *ddev)
static struct platform_driver wf_smu_driver = {
.probe = wf_smu_probe,
.remove_new = wf_smu_remove,
.remove = wf_smu_remove,
.driver = {
.name = "windfarm",
},

View File

@@ -695,7 +695,7 @@ static void wf_smu_remove(struct platform_device *ddev)
static struct platform_driver wf_smu_driver = {
.probe = wf_smu_probe,
.remove_new = wf_smu_remove,
.remove = wf_smu_remove,
.driver = {
.name = "windfarm",
},

View File

@@ -675,7 +675,7 @@ static void wf_rm31_remove(struct platform_device *dev)
static struct platform_driver wf_rm31_driver = {
.probe = wf_rm31_probe,
.remove_new = wf_rm31_remove,
.remove = wf_rm31_remove,
.driver = {
.name = "windfarm",
},