mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
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:
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user