Skip to content

Commit 6bc0226

Browse files
Dr. David Alan Gilbertstorulf
authored andcommitted
mmc: slot-gpio: Remove unused mmc_gpio_set_cd_isr
mmc_gpio_set_cd_isr() last use was removed in 2018 by commit 7838a8d ("mmc: omap_hsmmc: Kill off cover detection") Remove it. Signed-off-by: Dr. David Alan Gilbert <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Ulf Hansson <[email protected]>
1 parent 80e54e8 commit 6bc0226

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

drivers/mmc/core/slot-gpio.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,18 +159,6 @@ int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on)
159159
}
160160
EXPORT_SYMBOL(mmc_gpio_set_cd_wake);
161161

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-
174162
/**
175163
* mmc_gpiod_request_cd - request a gpio descriptor for card-detection
176164
* @host: mmc host

include/linux/mmc/slot-gpio.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ int mmc_gpiod_request_cd(struct mmc_host *host, const char *con_id,
2222
int mmc_gpiod_request_ro(struct mmc_host *host, const char *con_id,
2323
unsigned int idx, unsigned int debounce);
2424
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);
2625
int mmc_gpio_set_cd_wake(struct mmc_host *host, bool on);
2726
void mmc_gpiod_request_cd_irq(struct mmc_host *host);
2827
bool mmc_can_gpio_cd(struct mmc_host *host);

0 commit comments

Comments
 (0)