mfd: cros_ec: Free IRQ on exit
authorJeffy Chen <jeffy.chen@rock-chips.com>
Mon, 12 Jun 2017 08:42:46 +0000 (16:42 +0800)
committerLee Jones <lee.jones@linaro.org>
Thu, 6 Jul 2017 07:29:13 +0000 (08:29 +0100)
commitf58b14e6632a07ea1eb89aedb5e27cc55d251826
tree136f2f20ab82fa332aac0d68322ff87ed442c583
parent91ab076e3a2f092254fe5231bbfa92b37fd52e38
mfd: cros_ec: Free IRQ on exit

Currently we request the irq when probing, but never free it. So after
unbind ec driver, this irq will be left requested, which would break
the next bind:

[ 2683.338437] genirq: Flags mismatch irq 64. 00002008 (chromeos-ec) vs. 00002008 (chromeos-ec)
[ 2683.338591] cros-ec-spi spi5.0: request irq 64: error -16
[ 2683.338610] cros-ec-spi spi5.0: cannot register EC
[ 2683.338656] cros-ec-spi: probe of spi5.0 failed with error -16

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/cros_ec.c