camera:
[firefly-linux-kernel-4.4.55.git] / drivers / video / rockchip / transmitter / dp_anx6345.c
index 1dbd77f84935a56325e3ed721c67b1762dd2643b..7fd0071822af303fa283ae1c6f20a8fda7d97ba1 100644 (file)
@@ -176,7 +176,7 @@ static int get_dp_chip_id(struct i2c_client *client)
        return (id<<8)|c1;
 }
 
-
+#if defined(BIST_MODE)
 static int anx980x_bist_mode(struct i2c_client *client)
 {
        char val,i;
@@ -364,7 +364,7 @@ static int anx980x_bist_mode(struct i2c_client *client)
 
        return 0;
 }
-
+#endif
 static int anx980x_aux_rst(struct i2c_client *client)
 {
        char val;
@@ -625,7 +625,7 @@ static int anx980x_init(struct i2c_client *client)
        return 0;
 }
 
-
+#if defined(BIST_MODE)
 static int anx6345_bist_mode(struct i2c_client *client)
 {
        struct edp_anx6345 *anx6345 = i2c_get_clientdata(client);
@@ -684,7 +684,7 @@ static int anx6345_bist_mode(struct i2c_client *client)
 
        return 0;
 }
-
+#endif
 
 int anx6345_start_aux_transaction(struct i2c_client  *client)
 {
@@ -1419,6 +1419,6 @@ static void __exit anx6345_module_exit(void)
        i2c_del_driver(&anx6345_i2c_driver);
 }
 
-subsys_initcall_sync(anx6345_module_init);
+fs_initcall(anx6345_module_init);
 module_exit(anx6345_module_exit);