Skip to content

Commit 5727dc6

Browse files
Jingoo Hanmarckleinebudde
authored andcommitted
net: can: ti_hecc: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d06 (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <[email protected]> Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 688a2e7 commit 5727dc6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/can/ti_hecc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,6 @@ static int ti_hecc_remove(struct platform_device *pdev)
10011001
iounmap(priv->base);
10021002
release_mem_region(res->start, resource_size(res));
10031003
free_candev(ndev);
1004-
platform_set_drvdata(pdev, NULL);
10051004

10061005
return 0;
10071006
}

0 commit comments

Comments
 (0)