Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

staging: mt7621-mmc: Remove unused field enable_cd_eirq from msdc_hw



The enable_cd_eirq() field of msdc_hw is never set and only once
checked for not being zero, so it is removed.

Signed-off-by: default avatarChristian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4c02a65f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -74,7 +74,6 @@ struct msdc_hw {
	void (*disable_sdio_eirq)(void);

	/* external cd irq operations */
	void (*enable_cd_eirq)(void);
	void (*disable_cd_eirq)(void);
};

+11 −15
Original line number Diff line number Diff line
@@ -2453,9 +2453,6 @@ static void msdc_enable_cd_irq(struct msdc_host *host, int enable)
	N_MSG(CFG, "CD IRQ Eanable(%d)", enable);

	if (enable) {
		if (hw->enable_cd_eirq) { /* not set, never enter */
			hw->enable_cd_eirq();
		} else {
		/* card detection circuit relies on the core power so that the core power
		 * shouldn't be turned off. Here adds a reference count to keep
		 * the core power alive.
@@ -2469,7 +2466,6 @@ static void msdc_enable_cd_irq(struct msdc_host *host, int enable)
		sdr_set_bits(MSDC_PS, MSDC_PS_CDEN);
		sdr_set_bits(MSDC_INTEN, MSDC_INTEN_CDSC);
		sdr_set_bits(SDC_CFG, SDC_CFG_INSWKUP);  /* not in document! Fix me */
		}
	} else {
		if (hw->disable_cd_eirq) {
			hw->disable_cd_eirq();