OSDN Git Service

rtc: mt6397: Don't call irq_dispose_mapping.
authorPi-Hsun Shih <pihsun@chromium.org>
Mon, 11 Mar 2019 07:55:40 +0000 (15:55 +0800)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 4 Apr 2019 08:07:10 +0000 (10:07 +0200)
commit24db953e942bd7a983e97892bdaddf69d00b1199
treeb6ab845e15327ee63bf8f56b0caf852ba7ae2bdc
parentfd86b2d4bbfc66a42af51677a72254d304d79c99
rtc: mt6397: Don't call irq_dispose_mapping.

The IRQ mapping was changed to not being created in the rtc-mt6397
driver, so the irq_dispose_mapping is no longer needed.
Also the dev_id passed to free_irq should be the same as the last
argument passed to request_threaded_irq.
This prevents a "Trying to free already-free IRQ 274" warning when
unbinding the driver.

Fixes: e695d3a0b3b3 ("mfd: mt6397: Create irq mappings in mfd core driver")
Signed-off-by: Pi-Hsun Shih <pihsun@chromium.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-mt6397.c