Skip to content

Commit

Permalink
mmc: omap_hsmmc: use generic slot-gpio isr to manage card detect pin
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Andreas Fenkart authored and Ulf Hansson committed Mar 31, 2015
1 parent 11227d1 commit e03de74
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions drivers/mmc/host/omap_hsmmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ static inline int omap_hsmmc_have_reg(void)

#endif

static irqreturn_t omap_hsmmc_detect(int irq, void *dev_id);
static irqreturn_t omap_hsmmc_cover_irq(int irq, void *dev_id);

static int omap_hsmmc_gpio_init(struct mmc_host *mmc,
Expand All @@ -440,7 +439,6 @@ static int omap_hsmmc_gpio_init(struct mmc_host *mmc,
return ret;

host->card_detect = omap_hsmmc_card_detect;
mmc_gpio_set_cd_isr(mmc, omap_hsmmc_detect);
}

if (gpio_is_valid(pdata->gpio_wp)) {
Expand Down Expand Up @@ -1249,17 +1247,6 @@ static irqreturn_t omap_hsmmc_cover_irq(int irq, void *dev_id)
return IRQ_HANDLED;
}

/*
* irq handler to notify the core about card insertion/removal
*/
static irqreturn_t omap_hsmmc_detect(int irq, void *dev_id)
{
struct omap_hsmmc_host *host = dev_id;

mmc_detect_change(host->mmc, (HZ * 200) / 1000);
return IRQ_HANDLED;
}

static void omap_hsmmc_dma_callback(void *param)
{
struct omap_hsmmc_host *host = param;
Expand Down

0 comments on commit e03de74

Please sign in to comment.