Skip to content

Commit 5011a11

Browse files
Uwe Kleine-KönigDaniel Lezcano
authored andcommitted
thermal/drivers/imx_sc_thermal: Drop empty platform remove function
A remove callback just returning 0 is equivalent to no remove callback at all. So drop the useless function. 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 46a891e commit 5011a11

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/thermal/imx_sc_thermal.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,6 @@ static int imx_sc_thermal_probe(struct platform_device *pdev)
127127
return 0;
128128
}
129129

130-
static int imx_sc_thermal_remove(struct platform_device *pdev)
131-
{
132-
return 0;
133-
}
134-
135130
static int imx_sc_sensors[] = { IMX_SC_R_SYSTEM, IMX_SC_R_PMIC_0, -1 };
136131

137132
static const struct of_device_id imx_sc_thermal_table[] = {
@@ -142,7 +137,6 @@ MODULE_DEVICE_TABLE(of, imx_sc_thermal_table);
142137

143138
static struct platform_driver imx_sc_thermal_driver = {
144139
.probe = imx_sc_thermal_probe,
145-
.remove = imx_sc_thermal_remove,
146140
.driver = {
147141
.name = "imx-sc-thermal",
148142
.of_match_table = imx_sc_thermal_table,

0 commit comments

Comments
 (0)