i2c: sprd: remove build warnings
[profile/mobile/platform/kernel/u-boot-tm1.git] / drivers / i2c / i2c_hal.c
old mode 100755 (executable)
new mode 100644 (file)
index 2a28ddf..d3b3f0e
@@ -117,7 +117,6 @@ LOCAL uint32 I2C_Bus_CFG (uint32 logic_id)
 LOCAL uint32 I2C_Bus_Init (uint32 logic_id, uint32 freq, uint32 port_id)
 {
     uint32 bus_id = __i2c_phy_cfg[logic_id].phy_id;
-    IIC_PRINT ("[IIC DRV:]I2C_Bus_Init");
     /*config bus property*/
     __i2c_bus[bus_id].current_freq = freq;
     __i2c_bus[bus_id].current_port = port_id;
@@ -140,18 +139,17 @@ LOCAL uint32 I2C_Bus_Init (uint32 logic_id, uint32 freq, uint32 port_id)
 *********************************************************************************************************/
 LOCAL uint32 I2C_Bus_Exit (uint32 bus_id)
 {
-    uint32 status_val = 0;
     __i2c_bus[bus_id].reference =  0;
 
 /*
     if (NULL != __i2c_bus[bus_id].mutex)
     {
+        uint32 status_val = 0;
         status_val = SCI_DeleteMutex (__i2c_bus[bus_id].mutex);
         //SCI_PASSERT((0 != status_val),("I2C delete MUTEX fail!"));
         __i2c_bus[bus_id].mutex = NULL;
     }
 */
-    IIC_PRINT ("[IIC DRV:]I2C_Bus_Exit: status=%d", status_val);
     /*release the bus method*/
     __i2c_bus[bus_id].phy_fun = NULL;
     return 0;
@@ -219,8 +217,6 @@ PUBLIC int32 I2C_HAL_Open (I2C_DEV *dev)
 
     __i2c_bus[bus_id].reference++;
 
-    IIC_PRINT ("[IIC DRV:]I2C_HAL_Open: handle=%d, ref=%d", handle, __i2c_bus[bus_id].reference);
-
     return  handle;
 }
 
@@ -265,8 +261,6 @@ PUBLIC int32 I2C_HAL_Close (uint32 handle)
     __i2c_dev[handle].check_ack = 0;
     __i2c_dev[handle].no_stop = 0;
 
-    IIC_PRINT ("[IIC DRV:]I2C_HAL_Close: handle=%d, ref=%d", handle, __i2c_bus[bus_id].reference);
-
     return  0;
 }