staging: mt7621-mmc: Remove power callbacks from msdc_hw
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Wed, 18 Apr 2018 15:27:25 +0000 (17:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:37:48 +0000 (15:37 +0200)
The ext_power_on|off fields of msdc_hw are never set, and only once
checked for not being zero, so they can just be removed.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/board.h
drivers/staging/mt7621-mmc/sd.c

index c4e014d0163596300268fc3d3a602338418adba1..a60347cd3da80e7ef5c0f77823b31d006419d511 100644 (file)
@@ -64,10 +64,6 @@ struct msdc_hw {
 
        /* config gpio pull mode */
        void (*config_gpio_pin)(int type, int pull);
-
-       /* external power control for card */
-       void (*ext_power_on)(void);
-       void (*ext_power_off)(void);
 };
 
 extern struct msdc_hw msdc0_hw;
index 53866fda6beac344166d853d9a364e8da8cd086e..ae6e3dc53d09806f47b8114ed7af4fc84c0beb68 100644 (file)
@@ -771,16 +771,10 @@ static void msdc_card_power(struct msdc_host *host, int on)
 
        if (on) {
                msdc_pin_config(host, MSDC_PIN_PULL_UP);
-               if (host->hw->ext_power_on)
-                       host->hw->ext_power_on();
-               //else
-                       //msdc_vdd_on(host);  // need todo card detection.
+               //msdc_vdd_on(host);  // need todo card detection.
                msleep(1);
        } else {
-               if (host->hw->ext_power_off)
-                       host->hw->ext_power_off();
-               //else
-                       //msdc_vdd_off(host);
+               //msdc_vdd_off(host);
                msdc_pin_config(host, MSDC_PIN_PULL_DOWN);
                msleep(1);
        }