projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0415d5a
)
of: unittest: Drop call to platform_set_drvdata(..., NULL)
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Sun, 19 Mar 2023 10:06:18 +0000
(11:06 +0100)
committer
Rob Herring
<robh@kernel.org>
Mon, 20 Mar 2023 19:59:08 +0000
(14:59 -0500)
The driver core already unsets driver data after .remove() completes.
So there is no reason to do this explicitly in the driver itself.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link:
https://lore.kernel.org/r/20230319100620.295849-2-u.kleine-koenig@pengutronix.de
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest.c
patch
|
blob
|
history
diff --git
a/drivers/of/unittest.c
b/drivers/of/unittest.c
index
b5a7a31
..
2504092
100644
(file)
--- a/
drivers/of/unittest.c
+++ b/
drivers/of/unittest.c
@@
-1639,7
+1639,6
@@
static int unittest_gpio_remove(struct platform_device *pdev)
if (devptr->chip.base != -1)
gpiochip_remove(&devptr->chip);
- platform_set_drvdata(pdev, NULL);
kfree(devptr);
return 0;