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

staging: mt7621-mmc: Remove unused field disable_cd_eirq

The disable_cd_eirq() field of msdc_hw is never set and only once
checked for being non zero, so it is deleted.
Signed-off-by: default avatarChristian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ce16cb8d
...@@ -72,9 +72,6 @@ struct msdc_hw { ...@@ -72,9 +72,6 @@ struct msdc_hw {
/* external sdio irq operations */ /* external sdio irq operations */
void (*enable_sdio_eirq)(void); void (*enable_sdio_eirq)(void);
void (*disable_sdio_eirq)(void); void (*disable_sdio_eirq)(void);
/* external cd irq operations */
void (*disable_cd_eirq)(void);
}; };
extern struct msdc_hw msdc0_hw; extern struct msdc_hw msdc0_hw;
......
...@@ -2467,21 +2467,17 @@ static void msdc_enable_cd_irq(struct msdc_host *host, int enable) ...@@ -2467,21 +2467,17 @@ static void msdc_enable_cd_irq(struct msdc_host *host, int enable)
sdr_set_bits(MSDC_INTEN, MSDC_INTEN_CDSC); sdr_set_bits(MSDC_INTEN, MSDC_INTEN_CDSC);
sdr_set_bits(SDC_CFG, SDC_CFG_INSWKUP); /* not in document! Fix me */ sdr_set_bits(SDC_CFG, SDC_CFG_INSWKUP); /* not in document! Fix me */
} else { } else {
if (hw->disable_cd_eirq) { if (hw->config_gpio_pin) /* NULL */
hw->disable_cd_eirq(); hw->config_gpio_pin(MSDC_CD_PIN, GPIO_PULL_DOWN);
} else {
if (hw->config_gpio_pin) /* NULL */
hw->config_gpio_pin(MSDC_CD_PIN, GPIO_PULL_DOWN);
sdr_clr_bits(SDC_CFG, SDC_CFG_INSWKUP); sdr_clr_bits(SDC_CFG, SDC_CFG_INSWKUP);
sdr_clr_bits(MSDC_PS, MSDC_PS_CDEN); sdr_clr_bits(MSDC_PS, MSDC_PS_CDEN);
sdr_clr_bits(MSDC_INTEN, MSDC_INTEN_CDSC); sdr_clr_bits(MSDC_INTEN, MSDC_INTEN_CDSC);
/* Here decreases a reference count to core power since card /* Here decreases a reference count to core power since card
* detection circuit is shutdown. * detection circuit is shutdown.
*/ */
//msdc_vcore_off(host); //msdc_vcore_off(host);
}
} }
} }
......
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