[media] rc-core: initialize rc-core earlier if built-in
authorDavid Härdeman <david@hardeman.nu>
Wed, 6 Mar 2013 19:52:15 +0000 (16:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 19 Mar 2013 18:26:37 +0000 (15:26 -0300)
rc-core is a subsystem so it should be registered earlier if built into the
kernel.

Signed-off-by: David Härdeman <david@hardeman.nu>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/rc-main.c

index 759a40a42eaaf3bdc64e5df6e2323367d7e1bed6..a92b8c536c89493b7cf3946a59e2b2f7e2e0f005 100644 (file)
@@ -1207,7 +1207,7 @@ static void __exit rc_core_exit(void)
        rc_map_unregister(&empty_map);
 }
 
-module_init(rc_core_init);
+subsys_initcall(rc_core_init);
 module_exit(rc_core_exit);
 
 int rc_core_debug;    /* ir_debug level (0,1,2) */