Skip to content

Commit

Permalink
staging: ccree: add explicit module init/exit func
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gilad Ben-Yossef authored and Greg Kroah-Hartman committed Dec 19, 2017
1 parent 4ba5895 commit 31aeaca
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion drivers/staging/ccree/ssi_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 31aeaca

Please sign in to comment.