]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
mmc: slot-gpio: Remove unused mmc_gpio_set_cd_isr
authorDr. David Alan Gilbert <linux@treblig.org>
Wed, 29 Jan 2025 21:43:35 +0000 (21:43 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 11 Mar 2025 17:08:26 +0000 (18:08 +0100)
mmc_gpio_set_cd_isr() last use was removed in 2018 by
commit 7838a8ddc80b ("mmc: omap_hsmmc: Kill off cover detection")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20250129214335.125292-1-linux@treblig.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/slot-gpio.c
include/linux/mmc/slot-gpio.h

index 12247219e1c25fc0f2d93fe11a5d8d8e12b75651..5fd45581639318ce4b2149a0edef522a0ef0c750 100644 (file)
@@ -159,18 +159,6 @@ int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on)
 }
 EXPORT_SYMBOL(mmc_gpio_set_cd_wake);
 
-/* Register an alternate interrupt service routine for
- * the card-detect GPIO.
- */
-void mmc_gpio_set_cd_isr(struct mmc_host *host, irq_handler_t isr)
-{
-       struct mmc_gpio *ctx = host->slot.handler_priv;
-
-       WARN_ON(ctx->cd_gpio_isr);
-       ctx->cd_gpio_isr = isr;
-}
-EXPORT_SYMBOL(mmc_gpio_set_cd_isr);
-
 /**
  * mmc_gpiod_request_cd - request a gpio descriptor for card-detection
  * @host: mmc host
index 274a2767ea492444bf5f5ade27073ae625811b5e..1ed7b0d1e4f920bce642fb165b5be82d040810f6 100644 (file)
@@ -22,7 +22,6 @@ int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id,
 int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id,
                         unsigned int idx, unsigned int debounce);
 int mmc_gpiod_set_cd_config(struct mmc_host *host, unsigned long config);
-void mmc_gpio_set_cd_isr(struct mmc_host *host, irq_handler_t isr);
 int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on);
 void mmc_gpiod_request_cd_irq(struct mmc_host *host);
 bool mmc_can_gpio_cd(struct mmc_host *host);