Skip to content

Commit 01dc584

Browse files
ndreysdlezcano
authored andcommitted
thermal: qoriq: Drop unnecessary drvdata cleanup
Driver data of underlying struct device will be set to NULL by Linux's driver infrastructure. Clearing it here is unnecessary. Signed-off-by: Andrey Smirnov <[email protected]> Reviewed-by: Daniel Lezcano <[email protected]> Tested-by: Lucas Stach <[email protected]> Cc: Chris Healy <[email protected]> Cc: Lucas Stach <[email protected]> Cc: Eduardo Valentin <[email protected]> Cc: Daniel Lezcano <[email protected]> Cc: Angus Ainslie (Purism) <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8e1cda3 commit 01dc584

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/thermal/qoriq_thermal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,8 +327,6 @@ static int qoriq_tmu_remove(struct platform_device *pdev)
327327

328328
clk_disable_unprepare(data->clk);
329329

330-
platform_set_drvdata(pdev, NULL);
331-
332330
return 0;
333331
}
334332

0 commit comments

Comments
 (0)