diff options
author | Benoît Thébaudeau <benoit.thebaudeau@advansee.com> | 2012-06-18 15:03:06 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-06-25 16:15:36 -0300 |
commit | 81d75e9f56522ed340d7c72471b35ac8e25d823d (patch) | |
tree | 53f614a49a5a22c5d770c786edf4958c76ffb3f7 | |
parent | 2bd237b8a45eb107d6304496fbd5b4a34471fbd3 (diff) | |
download | linux-stable-81d75e9f56522ed340d7c72471b35ac8e25d823d.tar.gz linux-stable-81d75e9f56522ed340d7c72471b35ac8e25d823d.tar.bz2 linux-stable-81d75e9f56522ed340d7c72471b35ac8e25d823d.zip |
[media] media: gpio-ir-recv: switch to module_platform_driver
Cc: Ravi Kumar V <kumarrav@codeaurora.org>
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/rc/gpio-ir-recv.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/rc/gpio-ir-recv.c b/drivers/media/rc/gpio-ir-recv.c index 15e346e0bcd0..59fe60cd1e02 100644 --- a/drivers/media/rc/gpio-ir-recv.c +++ b/drivers/media/rc/gpio-ir-recv.c @@ -194,18 +194,7 @@ static struct platform_driver gpio_ir_recv_driver = { #endif }, }; - -static int __init gpio_ir_recv_init(void) -{ - return platform_driver_register(&gpio_ir_recv_driver); -} -module_init(gpio_ir_recv_init); - -static void __exit gpio_ir_recv_exit(void) -{ - platform_driver_unregister(&gpio_ir_recv_driver); -} -module_exit(gpio_ir_recv_exit); +module_platform_driver(gpio_ir_recv_driver); MODULE_DESCRIPTION("GPIO IR Receiver driver"); MODULE_LICENSE("GPL v2"); |