hwrng: omap - Use module_platform_driver macro
module_platform_driver() makes the code simpler. Using the macro in the driver. Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
d311149337
commit
4390f77b37
|
@ -198,9 +198,6 @@ static SIMPLE_DEV_PM_OPS(omap_rng_pm, omap_rng_suspend, omap_rng_resume);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* work with hotplug and coldplug */
|
|
||||||
MODULE_ALIAS("platform:omap_rng");
|
|
||||||
|
|
||||||
static struct platform_driver omap_rng_driver = {
|
static struct platform_driver omap_rng_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "omap_rng",
|
.name = "omap_rng",
|
||||||
|
@ -211,18 +208,7 @@ static struct platform_driver omap_rng_driver = {
|
||||||
.remove = __exit_p(omap_rng_remove),
|
.remove = __exit_p(omap_rng_remove),
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init omap_rng_init(void)
|
module_platform_driver(omap_rng_driver);
|
||||||
{
|
MODULE_ALIAS("platform:omap_rng");
|
||||||
return platform_driver_register(&omap_rng_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit omap_rng_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&omap_rng_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(omap_rng_init);
|
|
||||||
module_exit(omap_rng_exit);
|
|
||||||
|
|
||||||
MODULE_AUTHOR("Deepak Saxena (and others)");
|
MODULE_AUTHOR("Deepak Saxena (and others)");
|
||||||
MODULE_LICENSE("GPL");
|
MODULE_LICENSE("GPL");
|
||||||
|
|
Loading…
Reference in New Issue