summaryrefslogtreecommitdiff
path: root/drivers/staging/ccree/ssi_driver.c
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2017-12-14 17:02:40 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-19 17:15:53 +0300
commit31aeaca4d28d253f49c78dec8ec8987dbbb6f57f (patch)
tree698772275b0f5549d5abcd4ae89c6404ca338a28 /drivers/staging/ccree/ssi_driver.c
parent4ba5895bd3724106cdfc9a5d2e63ba381731fea0 (diff)
downloadlinux-31aeaca4d28d253f49c78dec8ec8987dbbb6f57f.tar.xz
staging: ccree: add explicit module init/exit func
We need to do a module global scope init/exit operation to support the debugfs interface we are about to introduce in the next patch, so wean the module of the boiler plate saving macro as it will no longer be sufficient. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/ccree/ssi_driver.c')
-rw-r--r--drivers/staging/ccree/ssi_driver.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/staging/ccree/ssi_driver.c b/drivers/staging/ccree/ssi_driver.c
index ad02d9214fbe..5427c7fe2f42 100644
--- a/drivers/staging/ccree/ssi_driver.c
+++ b/drivers/staging/ccree/ssi_driver.c
@@ -517,7 +517,18 @@ static struct platform_driver cc7x_driver = {
.probe = cc7x_probe,
.remove = cc7x_remove,
};
-module_platform_driver(cc7x_driver);
+
+static int __init ccree_init(void)
+{
+ return platform_driver_register(&cc7x_driver);
+}
+module_init(ccree_init);
+
+static void __exit ccree_exit(void)
+{
+ platform_driver_unregister(&cc7x_driver);
+}
+module_exit(ccree_exit);
/* Module description */
MODULE_DESCRIPTION("ARM TrustZone CryptoCell REE Driver");