mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
crypto: omap-sham - Use module_platform_driver macro
module_platform_driver() makes the code simpler by eliminating boilerplate code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
94e51df9d6
commit
0261370268
@ -1813,18 +1813,7 @@ static struct platform_driver omap_sham_driver = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init omap_sham_mod_init(void)
|
module_platform_driver(omap_sham_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&omap_sham_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit omap_sham_mod_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&omap_sham_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(omap_sham_mod_init);
|
|
||||||
module_exit(omap_sham_mod_exit);
|
|
||||||
|
|
||||||
MODULE_DESCRIPTION("OMAP SHA1/MD5 hw acceleration support.");
|
MODULE_DESCRIPTION("OMAP SHA1/MD5 hw acceleration support.");
|
||||||
MODULE_LICENSE("GPL v2");
|
MODULE_LICENSE("GPL v2");
|
||||||
|
Loading…
Reference in New Issue
Block a user