Commit 304ce75d authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by Mauro Carvalho Chehab

[media] media/ir_rx51: use module_platform_driver macro

This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 0e368f30
......@@ -480,18 +480,7 @@ struct platform_driver lirc_rx51_platform_driver = {
.owner = THIS_MODULE,
},
};
static int __init lirc_rx51_init(void)
{
return platform_driver_register(&lirc_rx51_platform_driver);
}
module_init(lirc_rx51_init);
static void __exit lirc_rx51_exit(void)
{
platform_driver_unregister(&lirc_rx51_platform_driver);
}
module_exit(lirc_rx51_exit);
module_platform_driver(lirc_rx51_platform_driver);
MODULE_DESCRIPTION("LIRC TX driver for Nokia RX51");
MODULE_AUTHOR("Nokia Corporation");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment