mfd: mt6397: Don't call irq_dispose_mapping.
Subsystems (3)
PATCH 1/1 mfd: 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 <[email protected]>
--- drivers/rtc/rtc-mt6397.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/rtc/rtc-mt6397.c +3 -6
@@ -343,7 +343,7 @@ static int mtk_rtc_probe(struct platform_device *pdev)if (ret) {dev_err (&pdev->dev,"Failed to request alarm IRQ: %d: %d\n" , rtc->irq, ret); - goto out_dispose_irq; +return ret; }device_init_wakeup (&pdev->dev,1 );
@@ -359,9 +359,7 @@ static int mtk_rtc_probe(struct platform_device *pdev)return 0 ; out_free_irq: -free_irq (rtc->irq, rtc->rtc_dev); -out_dispose_irq: -irq_dispose_mapping (rtc->irq); +free_irq (rtc->irq, rtc);return ret; }
@@ -369,8 +367,7 @@ static int mtk_rtc_remove(struct platform_device *pdev) {struct mt6397_rtc *rtc =platform_get_drvdata (pdev); -free_irq (rtc->irq, rtc->rtc_dev); -irq_dispose_mapping (rtc->irq); +free_irq (rtc->irq, rtc);return 0 ; }
Signature · 1 line
2.21.0.360.g471c308f928-goog
Quoted 7 lines · Pi-Hsun Shih
The IRQ mapping was changed to not being created in the rtc-mt6397 driver, so the
irq_dispose_mappingis no longer needed. Also thedev_idpassed tofree_irqshould be the same as the last argument passed torequest_threaded_irq.
This prevents a "Trying to free already-free IRQ 274" warning when unbinding the driver.
Quoted 7 lines
Fixes e695d3a0b3b3 ("mfd: mt6397: Create irq mappings in mfd core driver")Signed-off-by Pi-Hsun Shih <[email protected]>--- drivers/rtc/rtc-mt6397.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
Applied, thanks.
Signature · 3 lines
Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com