hdmi: set hdmi probe later than codec,
authoryzq <yzq@rock-chips.com>
Thu, 21 Feb 2013 09:27:06 +0000 (17:27 +0800)
committeryzq <yzq@rock-chips.com>
Thu, 21 Feb 2013 09:28:53 +0000 (17:28 +0800)
fix codec not close when system start with hdmi plug

drivers/video/hdmi/chips/rk610/rk610_hdmi.c
drivers/video/rockchip/hdmi/chips/cat66121/cat66121_hdmi.c
drivers/video/rockchip/hdmi/chips/rk30/rk30_hdmi.c

index 0c4ab2f135ca678b4284073e3fd7aabcdb43c45f..2c8ee3da6b0436afc3e20dd308657b40ff4837fb 100644 (file)
@@ -308,6 +308,5 @@ static void __exit rk610_hdmi_module_exit(void)
     i2c_del_driver(&rk610_hdmi_i2c_driver);\r
 }\r
 \r
-module_init(rk610_hdmi_module_init);\r
-//module_init(rk610_hdmi_module_init);\r
+device_initcall_sync(rk610_hdmi_module_init);\r
 module_exit(rk610_hdmi_module_exit);\r
index 3756b9a24bd0925d112fda384ba0af85aab6afdc..aa7dbdccf4e0869d74c9e26dd915505a4f620f37 100755 (executable)
@@ -332,6 +332,6 @@ static void __exit cat66121_hdmi_exit(void)
     i2c_del_driver(&cat66121_hdmi_i2c_driver);
 }
 
-module_init(cat66121_hdmi_init);
-//fs_initcall(cat66121_init);
+//module_init(cat66121_hdmi_init);
+device_initcall_sync(cat66121_hdmi_init);
 module_exit(cat66121_hdmi_exit);
index aab3ecb4ee5484a1ca147220704316de1997fcab..63ddcc622d998960714d4cd8c4c12e047e0fc731 100755 (executable)
@@ -295,5 +295,5 @@ static void __exit rk30_hdmi_exit(void)
 \r
 \r
 //fs_initcall(rk30_hdmi_init);\r
-module_init(rk30_hdmi_init);\r
+device_initcall_sync(rk30_hdmi_init);\r
 module_exit(rk30_hdmi_exit);\r