staging: sm750fb: remove unused enable{ZVPort,SSP,PWM} functions
authorMike Rapoport <mike.rapoport@gmail.com>
Wed, 30 Sep 2015 05:24:59 +0000 (08:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Sep 2015 10:26:20 +0000 (12:26 +0200)
The functions that enable/disable power for some sub-devices are not
used and therefore they can be removed.

Signed-off-by: Mike Rapoport <mike.rapoport@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/ddk750_power.c
drivers/staging/sm750fb/ddk750_power.h

index 864bbd6abbda8a6773a32dc4542d2883f27bd625..198ff81161b108a70a5c77e0c716a6fc2b0e7a5d 100644 (file)
@@ -122,50 +122,6 @@ void enable2DEngine(unsigned int enable)
        setCurrentGate(gate);
 }
 
-
-/*
- * This function enable/disable the ZV Port.
- */
-void enableZVPort(unsigned int enable)
-{
-       uint32_t gate;
-
-       /* Enable ZV Port Gate */
-       gate = PEEK32(CURRENT_GATE);
-       if (enable) {
-               gate = FIELD_SET(gate, CURRENT_GATE, ZVPORT, ON);
-#if 1
-               /* Using Software I2C */
-               gate = FIELD_SET(gate, CURRENT_GATE, GPIO, ON);
-#else
-               /* Using Hardware I2C */
-               gate = FIELD_SET(gate, CURRENT_GATE, I2C,    ON);
-#endif
-       } else {
-               /* Disable ZV Port Gate. There is no way to know whether the
-               GPIO pins are being used or not. Therefore, do not disable the
-               GPIO gate. */
-               gate = FIELD_SET(gate, CURRENT_GATE, ZVPORT, OFF);
-       }
-
-       setCurrentGate(gate);
-}
-
-
-void enableSSP(unsigned int enable)
-{
-       uint32_t gate;
-
-       /* Enable SSP Gate */
-       gate = PEEK32(CURRENT_GATE);
-       if (enable)
-               gate = FIELD_SET(gate, CURRENT_GATE, SSP, ON);
-       else
-               gate = FIELD_SET(gate, CURRENT_GATE, SSP, OFF);
-
-       setCurrentGate(gate);
-}
-
 void enableDMA(unsigned int enable)
 {
        uint32_t gate;
@@ -197,23 +153,6 @@ void enableGPIO(unsigned int enable)
        setCurrentGate(gate);
 }
 
-/*
- * This function enable/disable the PWM Engine
- */
-void enablePWM(unsigned int enable)
-{
-       uint32_t gate;
-
-       /* Enable PWM Gate */
-       gate = PEEK32(CURRENT_GATE);
-       if (enable)
-               gate = FIELD_SET(gate, CURRENT_GATE, PWM, ON);
-       else
-               gate = FIELD_SET(gate, CURRENT_GATE, PWM, OFF);
-
-       setCurrentGate(gate);
-}
-
 /*
  * This function enable/disable the I2C Engine
  */
index ed08cdb883c908138736fc0162976b510aec994d..6e804d990cfff8ee41ffa23d4e148e2683a3f0ca 100644 (file)
@@ -34,11 +34,6 @@ void setCurrentGate(unsigned int gate);
  */
 void enable2DEngine(unsigned int enable);
 
-/*
- * This function enable/disable the ZV Port
- */
-void enableZVPort(unsigned int enable);
-
 /*
  * This function enable/disable the DMA Engine
  */
@@ -49,20 +44,10 @@ void enableDMA(unsigned int enable);
  */
 void enableGPIO(unsigned int enable);
 
-/*
- * This function enable/disable the PWM Engine
- */
-void enablePWM(unsigned int enable);
-
 /*
  * This function enable/disable the I2C Engine
  */
 void enableI2C(unsigned int enable);
 
-/*
- * This function enable/disable the SSP.
- */
-void enableSSP(unsigned int enable);
-
 
 #endif