mmc: cd-gpio: Add sanity checks in mmc_cd_gpio_free()
Add necessary sanity checks in mmc_cd_gpio_free() to fix
below warning:
[ 5.856209] WARNING: at
local/mnt/workspace/builds/jb2/kernel/kernel/irq/manage.c:1219
__free_irq+0x88/0x1a8()
[ 5.856215] Trying to free already-free IRQ 0
[ 5.856219] Modules linked in:
[ 5.856239] [<c010be94>] (unwind_backtrace+0x0/0x11c) from [<c0190f38>]
(warn_slowpath_common+0x4c/0x64)
CRs-fixed: 564084
Change-Id: Ia9ea0e82453e645ce44046a762cd78aeb544e8b1
Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
1 file changed