Commit aae92e8c authored by Christian Lütke-Stetzkamp's avatar Christian Lütke-Stetzkamp Committed by Greg Kroah-Hartman

staging: mt7621-mmc: Remove power callbacks from msdc_hw

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: default avatarChristian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c65f33aa
...@@ -64,10 +64,6 @@ struct msdc_hw { ...@@ -64,10 +64,6 @@ struct msdc_hw {
/* config gpio pull mode */ /* config gpio pull mode */
void (*config_gpio_pin)(int type, int pull); 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; extern struct msdc_hw msdc0_hw;
......
...@@ -771,15 +771,9 @@ static void msdc_card_power(struct msdc_host *host, int on) ...@@ -771,15 +771,9 @@ static void msdc_card_power(struct msdc_host *host, int on)
if (on) { if (on) {
msdc_pin_config(host, MSDC_PIN_PULL_UP); 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); msleep(1);
} else { } 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); msdc_pin_config(host, MSDC_PIN_PULL_DOWN);
msleep(1); msleep(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment