mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -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:
@@ -2049,7 +2049,7 @@ static struct platform_driver panel_edp_platform_driver = {
|
||||
.pm = &panel_edp_pm_ops,
|
||||
},
|
||||
.probe = panel_edp_platform_probe,
|
||||
.remove_new = panel_edp_platform_remove,
|
||||
.remove = panel_edp_platform_remove,
|
||||
.shutdown = panel_edp_platform_shutdown,
|
||||
};
|
||||
|
||||
|
||||
@@ -246,7 +246,7 @@ MODULE_DEVICE_TABLE(of, panel_lvds_of_table);
|
||||
|
||||
static struct platform_driver panel_lvds_driver = {
|
||||
.probe = panel_lvds_probe,
|
||||
.remove_new = panel_lvds_remove,
|
||||
.remove = panel_lvds_remove,
|
||||
.driver = {
|
||||
.name = "panel-lvds",
|
||||
.of_match_table = panel_lvds_of_table,
|
||||
|
||||
@@ -297,7 +297,7 @@ static struct platform_driver seiko_panel_platform_driver = {
|
||||
.of_match_table = platform_of_match,
|
||||
},
|
||||
.probe = seiko_panel_platform_probe,
|
||||
.remove_new = seiko_panel_remove,
|
||||
.remove = seiko_panel_remove,
|
||||
};
|
||||
module_platform_driver(seiko_panel_platform_driver);
|
||||
|
||||
|
||||
@@ -207,7 +207,7 @@ MODULE_DEVICE_TABLE(of, ls037v7dw01_of_match);
|
||||
|
||||
static struct platform_driver ls037v7dw01_driver = {
|
||||
.probe = ls037v7dw01_probe,
|
||||
.remove_new = ls037v7dw01_remove,
|
||||
.remove = ls037v7dw01_remove,
|
||||
.driver = {
|
||||
.name = "panel-sharp-ls037v7dw01",
|
||||
.of_match_table = ls037v7dw01_of_match,
|
||||
|
||||
@@ -5120,7 +5120,7 @@ static struct platform_driver panel_simple_platform_driver = {
|
||||
.pm = &panel_simple_pm_ops,
|
||||
},
|
||||
.probe = panel_simple_platform_probe,
|
||||
.remove_new = panel_simple_platform_remove,
|
||||
.remove = panel_simple_platform_remove,
|
||||
.shutdown = panel_simple_platform_shutdown,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user