lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-id: <002801cfa610$59eee630$0dccb290$%han@samsung.com> Date: Wed, 23 Jul 2014 09:52:17 +0900 From: Jingoo Han <jg1.han@...sung.com> To: 'Tobias Klauser' <tklauser@...tanz.ch> Cc: linux-kernel@...r.kernel.org, 'Suman Anna' <s-anna@...com>, 'Tony Lindgren' <tony@...mide.com>, 'Jingoo Han' <jg1.han@...sung.com> Subject: Re: [PATCH] mailbox/omap: Use module_platform_driver On Tuesday, July 22, 2014 9:14 PM, Tobias Klauser wrote: > > Use the module_platform_driver to omit module init/exit boilerplate code. > > Signed-off-by: Tobias Klauser <tklauser@...tanz.ch> Reviewed-by: Jingoo Han <jg1.han@...sung.com> Best regards, Jingoo Han > --- > drivers/mailbox/mailbox-omap1.c | 13 +------------ > drivers/mailbox/mailbox-omap2.c | 13 +------------ > 2 files changed, 2 insertions(+), 24 deletions(-) > > diff --git a/drivers/mailbox/mailbox-omap1.c b/drivers/mailbox/mailbox-omap1.c > index 9001b76..735aeef 100644 > --- a/drivers/mailbox/mailbox-omap1.c > +++ b/drivers/mailbox/mailbox-omap1.c > @@ -184,18 +184,7 @@ static struct platform_driver omap1_mbox_driver = { > }, > }; > > -static int __init omap1_mbox_init(void) > -{ > - return platform_driver_register(&omap1_mbox_driver); > -} > - > -static void __exit omap1_mbox_exit(void) > -{ > - platform_driver_unregister(&omap1_mbox_driver); > -} > - > -module_init(omap1_mbox_init); > -module_exit(omap1_mbox_exit); > +module_platform_driver(omap1_mbox_driver); > > MODULE_LICENSE("GPL v2"); > MODULE_DESCRIPTION("omap mailbox: omap1 architecture specific functions"); > diff --git a/drivers/mailbox/mailbox-omap2.c b/drivers/mailbox/mailbox-omap2.c > index 42d2b89..a9dedf0 100644 > --- a/drivers/mailbox/mailbox-omap2.c > +++ b/drivers/mailbox/mailbox-omap2.c > @@ -337,18 +337,7 @@ static struct platform_driver omap2_mbox_driver = { > }, > }; > > -static int __init omap2_mbox_init(void) > -{ > - return platform_driver_register(&omap2_mbox_driver); > -} > - > -static void __exit omap2_mbox_exit(void) > -{ > - platform_driver_unregister(&omap2_mbox_driver); > -} > - > -module_init(omap2_mbox_init); > -module_exit(omap2_mbox_exit); > +module_platform_driver(omap2_mbox_driver); > > MODULE_LICENSE("GPL v2"); > MODULE_DESCRIPTION("omap mailbox: omap2/3/4 architecture specific functions"); > -- > 2.0.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists