Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mmc: slot-gpio: Remove unused mmc_gpio_set_cd_isr

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>

authored by

Dr. David Alan Gilbert and committed by
Ulf Hansson
6bc02265 80e54e84

-13
-12
drivers/mmc/core/slot-gpio.c
··· 159 159 } 160 160 EXPORT_SYMBOL(mmc_gpio_set_cd_wake); 161 161 162 - /* Register an alternate interrupt service routine for 163 - * the card-detect GPIO. 164 - */ 165 - void mmc_gpio_set_cd_isr(struct mmc_host *host, irq_handler_t isr) 166 - { 167 - struct mmc_gpio *ctx = host->slot.handler_priv; 168 - 169 - WARN_ON(ctx->cd_gpio_isr); 170 - ctx->cd_gpio_isr = isr; 171 - } 172 - EXPORT_SYMBOL(mmc_gpio_set_cd_isr); 173 - 174 162 /** 175 163 * mmc_gpiod_request_cd - request a gpio descriptor for card-detection 176 164 * @host: mmc host
-1
include/linux/mmc/slot-gpio.h
··· 22 22 int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id, 23 23 unsigned int idx, unsigned int debounce); 24 24 int mmc_gpiod_set_cd_config(struct mmc_host *host, unsigned long config); 25 - void mmc_gpio_set_cd_isr(struct mmc_host *host, irq_handler_t isr); 26 25 int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on); 27 26 void mmc_gpiod_request_cd_irq(struct mmc_host *host); 28 27 bool mmc_can_gpio_cd(struct mmc_host *host);