summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authortangyuxin <[email protected]>2018-07-21 16:29:15 +0800
committertangyuxin <[email protected]>2018-07-21 16:29:17 +0800
commit78189dfb6b740965c91bb363a4ae14353a0ae7e5 (patch)
treea770045b8fa23fca1acaff0a4ca306bab685dc2c /components
parentc64689147ac4c6d8bf23bc2dc71ed666efef8a14 (diff)
[components][drivers][sdio]修复没有注册SDIO中断导致断言的问题
Diffstat (limited to 'components')
-rw-r--r--components/drivers/sdio/sdio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/drivers/sdio/sdio.c b/components/drivers/sdio/sdio.c
index dc0cd1eb96..b105e65109 100644
--- a/components/drivers/sdio/sdio.c
+++ b/components/drivers/sdio/sdio.c
@@ -1171,7 +1171,8 @@ void sdio_irq_wakeup(struct rt_mmcsd_host *host)
{
if (host->flags & MMCSD_SUP_SDIO_IRQ)
host->ops->enable_sdio_irq(host, 0);
- rt_sem_release(host->sdio_irq_sem);
+ if (host->sdio_irq_sem)
+ rt_sem_release(host->sdio_irq_sem);
}
rt_int32_t sdio_enable_func(struct rt_sdio_function *func)