projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
345309f
)
spi: bcm-qspi: Remove unnecessary platform_set_drvdata()
author
Wei Yongjun
<
[email protected]
>
Thu, 9 Feb 2017 15:32:21 +0000
(15:32 +0000)
committer
Mark Brown
<
[email protected]
>
Tue, 14 Feb 2017 17:59:51 +0000
(17:59 +0000)
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.
Signed-off-by: Wei Yongjun <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/spi/spi-bcm-qspi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-bcm-qspi.c
b/drivers/spi/spi-bcm-qspi.c
index 99b3057531a534851898e3dd91100759087423fe..958fb4ee972d01914b433e5ce545ea333b319760 100644
(file)
--- a/
drivers/spi/spi-bcm-qspi.c
+++ b/
drivers/spi/spi-bcm-qspi.c
@@
-1408,7
+1408,6
@@
int bcm_qspi_remove(struct platform_device *pdev)
{
struct bcm_qspi *qspi = platform_get_drvdata(pdev);
- platform_set_drvdata(pdev, NULL);
bcm_qspi_hw_uninit(qspi);
clk_disable_unprepare(qspi->clk);
kfree(qspi->dev_ids);