bcm2835-mmc: Fix duplicate free_irq() on remove
authorLukas Wunner <lukas@wunner.de>
Sat, 19 Jan 2019 08:00:26 +0000 (09:00 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:23 +0000 (00:08 +0100)
commitad66078a7eeb11b276c83ee0f9f4346b69879b4a
tree261ddef570740a8076c5b7f669a0e70455998e12
parent00b48062daca8149c0f41f7ba051e0bd9022a406
bcm2835-mmc: Fix duplicate free_irq() on remove

The BCM2835 MMC host driver requests its interrupt as a device-managed
resource, so the interrupt is automatically freed after the driver is
unbound.

However on driver unbind, bcm2835_mmc_remove() frees the interrupt
explicitly to avoid invocation of the interrupt handler after driver
structures have been torn down.

The interrupt is thus freed twice, leading to a WARN splat in
__free_irq().  Fix by not requesting the interrupt as a device-managed
resource.

Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: Frank Pavlic <f.pavlic@kunbus.de>
drivers/mmc/host/bcm2835-mmc.c