diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-10-10 13:34:07 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-10-27 09:36:29 -0400 |
commit | 304ce75dd501d84d33dbca3c544e903f1d3377f7 (patch) | |
tree | 0307a8d931b9aa4b99e99a26daf60ef4614f8f68 /drivers/media | |
parent | 0e368f302e897b8a6a14191dfc66d92bc354014f (diff) |
[media] media/ir_rx51: use module_platform_driver macro
This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/rc/ir-rx51.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/rc/ir-rx51.c b/drivers/media/rc/ir-rx51.c index 546199e9ccc7..8cfe3166bb54 100644 --- a/drivers/media/rc/ir-rx51.c +++ b/drivers/media/rc/ir-rx51.c | |||
@@ -480,18 +480,7 @@ struct platform_driver lirc_rx51_platform_driver = { | |||
480 | .owner = THIS_MODULE, | 480 | .owner = THIS_MODULE, |
481 | }, | 481 | }, |
482 | }; | 482 | }; |
483 | 483 | module_platform_driver(lirc_rx51_platform_driver); | |
484 | static int __init lirc_rx51_init(void) | ||
485 | { | ||
486 | return platform_driver_register(&lirc_rx51_platform_driver); | ||
487 | } | ||
488 | module_init(lirc_rx51_init); | ||
489 | |||
490 | static void __exit lirc_rx51_exit(void) | ||
491 | { | ||
492 | platform_driver_unregister(&lirc_rx51_platform_driver); | ||
493 | } | ||
494 | module_exit(lirc_rx51_exit); | ||
495 | 484 | ||
496 | MODULE_DESCRIPTION("LIRC TX driver for Nokia RX51"); | 485 | MODULE_DESCRIPTION("LIRC TX driver for Nokia RX51"); |
497 | MODULE_AUTHOR("Nokia Corporation"); | 486 | MODULE_AUTHOR("Nokia Corporation"); |