Loading drivers/mmc/core/slot-gpio.c +8 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,14 @@ static irqreturn_t mmc_gpio_cd_irqt(int irq, void *dev_id) struct mmc_gpio *ctx = host->slot.handler_priv; int status; /* * In case host->ops are not yet initialized return immediately. * The card will get detected later when host driver calls * mmc_add_host() after host->ops are initialized. */ if (!host->ops) goto out; if (host->ops->card_event) host->ops->card_event(host); Loading Loading
drivers/mmc/core/slot-gpio.c +8 −0 Original line number Diff line number Diff line Loading @@ -47,6 +47,14 @@ static irqreturn_t mmc_gpio_cd_irqt(int irq, void *dev_id) struct mmc_gpio *ctx = host->slot.handler_priv; int status; /* * In case host->ops are not yet initialized return immediately. * The card will get detected later when host driver calls * mmc_add_host() after host->ops are initialized. */ if (!host->ops) goto out; if (host->ops->card_event) host->ops->card_event(host); Loading