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:
a68b728
)
spi-topcliff-pch: missing platform_driver_unregister() on error in pch_spi_init()
author
Wei Yongjun
<
[email protected]
>
Thu, 25 Apr 2013 07:18:02 +0000
(15:18 +0800)
committer
Mark Brown
<
[email protected]
>
Thu, 25 Apr 2013 10:57:38 +0000
(11:57 +0100)
Add the missing platform_driver_unregister() before return
from pch_spi_init() in the error handling case.
Signed-off-by: Wei Yongjun <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/spi/spi-topcliff-pch.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-topcliff-pch.c
b/drivers/spi/spi-topcliff-pch.c
index f756481b0fea7fd99af96622d04bb248436454cf..c8b672e07ba0969e7dd596640b8798d8e02b9dac 100644
(file)
--- a/
drivers/spi/spi-topcliff-pch.c
+++ b/
drivers/spi/spi-topcliff-pch.c
@@
-1789,8
+1789,10
@@
static int __init pch_spi_init(void)
return ret;
ret = pci_register_driver(&pch_spi_pcidev_driver);
- if (ret)
+ if (ret) {
+ platform_driver_unregister(&pch_spi_pd_driver);
return ret;
+ }
return 0;
}