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:
85f66a0
)
bcma: pci: remove unnecessary pci_set_drvdata()
author
Jingoo Han
<
[email protected]
>
Mon, 25 Nov 2013 03:37:24 +0000
(12:37 +0900)
committer
John W. Linville
<
[email protected]
>
Thu, 5 Dec 2013 19:56:39 +0000
(14:56 -0500)
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: Jingoo Han <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/bcma/host_pci.c
patch
|
blob
|
history
diff --git
a/drivers/bcma/host_pci.c
b/drivers/bcma/host_pci.c
index 6fb98b53533f9d708dfc2a530e1033f3f09008b9..12a4ff7513595d5b9a567d11267c625d4d9a67e0 100644
(file)
--- a/
drivers/bcma/host_pci.c
+++ b/
drivers/bcma/host_pci.c
@@
-238,7
+238,6
@@
static void bcma_host_pci_remove(struct pci_dev *dev)
pci_release_regions(dev);
pci_disable_device(dev);
kfree(bus);
- pci_set_drvdata(dev, NULL);
}
#ifdef CONFIG_PM_SLEEP