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:
c380aaf
)
mwifiex: Call pci_release_region after calling pci_disable_device
author
Yogesh Ashok Powar
<
[email protected]
>
Tue, 23 Apr 2013 23:49:48 +0000
(16:49 -0700)
committer
John W. Linville
<
[email protected]
>
Fri, 26 Apr 2013 12:42:21 +0000
(08:42 -0400)
"drivers should call pci_release_region() AFTER
calling pci_disable_device()"
Please refer section 3.2 Request MMIO/IOP resources
in Documentation/PCI/pci.txt
Cc: <
[email protected]
> # 3.2+
Signed-off-by: Avinash Patil <
[email protected]
>
Signed-off-by: Amitkumar Karwar <
[email protected]
>
Signed-off-by: Yogesh Ashok Powar <
[email protected]
>
Signed-off-by: Bing Zhao <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/mwifiex/pcie.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/mwifiex/pcie.c
b/drivers/net/wireless/mwifiex/pcie.c
index fec2a617bf984440111f058d43e843c6def73fba..b924e1d9cf9ce78a29a43492d99678e3c00f0a94 100644
(file)
--- a/
drivers/net/wireless/mwifiex/pcie.c
+++ b/
drivers/net/wireless/mwifiex/pcie.c
@@
-2294,9
+2294,9
@@
static void mwifiex_pcie_cleanup(struct mwifiex_adapter *adapter)
if (pdev) {
pci_iounmap(pdev, card->pci_mmap);
pci_iounmap(pdev, card->pci_mmap1);
+ pci_disable_device(pdev);
pci_release_region(pdev, 2);
pci_release_region(pdev, 0);
- pci_disable_device(pdev);
pci_set_drvdata(pdev, NULL);
}
}