Skip to content

Commit dd64594

Browse files
ukleinekdlezcano
authored andcommitted
thermal: Switch back to struct platform_driver::remove()
After commit 0edb555 ("platform: Make platform_driver::remove() return void") .remove() is (again) the right callback to implement for platform drivers. Convert all platform drivers below drivers/thermal to use .remove(), with the eventual goal to drop struct platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer. On the way make a few whitespace changes to make indention consistent. Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 62d9748 commit dd64594

32 files changed

+35
-35
lines changed

drivers/thermal/amlogic_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ static struct platform_driver amlogic_thermal_driver = {
333333
.of_match_table = of_amlogic_thermal_match,
334334
},
335335
.probe = amlogic_thermal_probe,
336-
.remove_new = amlogic_thermal_remove,
336+
.remove = amlogic_thermal_remove,
337337
};
338338

339339
module_platform_driver(amlogic_thermal_driver);

drivers/thermal/armada_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ static void armada_thermal_exit(struct platform_device *pdev)
970970

971971
static struct platform_driver armada_thermal_driver = {
972972
.probe = armada_thermal_probe,
973-
.remove_new = armada_thermal_exit,
973+
.remove = armada_thermal_exit,
974974
.driver = {
975975
.name = "armada_thermal",
976976
.of_match_table = armada_thermal_id_table,

drivers/thermal/broadcom/bcm2835_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ static void bcm2835_thermal_remove(struct platform_device *pdev)
268268

269269
static struct platform_driver bcm2835_thermal_driver = {
270270
.probe = bcm2835_thermal_probe,
271-
.remove_new = bcm2835_thermal_remove,
271+
.remove = bcm2835_thermal_remove,
272272
.driver = {
273273
.name = "bcm2835_thermal",
274274
.of_match_table = bcm2835_thermal_of_match_table,

drivers/thermal/broadcom/ns-thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ MODULE_DEVICE_TABLE(of, ns_thermal_of_match);
8080

8181
static struct platform_driver ns_thermal_driver = {
8282
.probe = ns_thermal_probe,
83-
.remove_new = ns_thermal_remove,
83+
.remove = ns_thermal_remove,
8484
.driver = {
8585
.name = "ns-thermal",
8686
.of_match_table = ns_thermal_of_match,

drivers/thermal/da9062-thermal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ static void da9062_thermal_remove(struct platform_device *pdev)
250250

251251
static struct platform_driver da9062_thermal_driver = {
252252
.probe = da9062_thermal_probe,
253-
.remove_new = da9062_thermal_remove,
253+
.remove = da9062_thermal_remove,
254254
.driver = {
255-
.name = "da9062-thermal",
256-
.of_match_table = da9062_compatible_reg_id_table,
255+
.name = "da9062-thermal",
256+
.of_match_table = da9062_compatible_reg_id_table,
257257
},
258258
};
259259

drivers/thermal/dove_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ MODULE_DEVICE_TABLE(of, dove_thermal_id_table);
170170

171171
static struct platform_driver dove_thermal_driver = {
172172
.probe = dove_thermal_probe,
173-
.remove_new = dove_thermal_exit,
173+
.remove = dove_thermal_exit,
174174
.driver = {
175175
.name = "dove_thermal",
176176
.of_match_table = dove_thermal_id_table,

drivers/thermal/hisi_thermal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,10 +637,10 @@ static struct platform_driver hisi_thermal_driver = {
637637
.driver = {
638638
.name = "hisi_thermal",
639639
.pm = pm_sleep_ptr(&hisi_thermal_pm_ops),
640-
.of_match_table = of_hisi_thermal_match,
640+
.of_match_table = of_hisi_thermal_match,
641641
},
642642
.probe = hisi_thermal_probe,
643-
.remove_new = hisi_thermal_remove,
643+
.remove = hisi_thermal_remove,
644644
};
645645

646646
module_platform_driver(hisi_thermal_driver);

drivers/thermal/imx8mm_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ static struct platform_driver imx8mm_tmu = {
399399
.of_match_table = imx8mm_tmu_table,
400400
},
401401
.probe = imx8mm_tmu_probe,
402-
.remove_new = imx8mm_tmu_remove,
402+
.remove = imx8mm_tmu_remove,
403403
};
404404
module_platform_driver(imx8mm_tmu);
405405

drivers/thermal/imx_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ static struct platform_driver imx_thermal = {
861861
.of_match_table = of_imx_thermal_match,
862862
},
863863
.probe = imx_thermal_probe,
864-
.remove_new = imx_thermal_remove,
864+
.remove = imx_thermal_remove,
865865
};
866866
module_platform_driver(imx_thermal);
867867

drivers/thermal/intel/int340x_thermal/int3400_thermal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ MODULE_DEVICE_TABLE(acpi, int3400_thermal_match);
707707

708708
static struct platform_driver int3400_thermal_driver = {
709709
.probe = int3400_thermal_probe,
710-
.remove_new = int3400_thermal_remove,
710+
.remove = int3400_thermal_remove,
711711
.driver = {
712712
.name = "int3400 thermal",
713713
.acpi_match_table = ACPI_PTR(int3400_thermal_match),

0 commit comments

Comments
 (0)