提交 46339cd6 编写于 作者: H Hongchen Zhang

i2c: loongson: fix irq not freed when remove module

LoongArch inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7362E

--------------------------------

The interrupt resource of i2c_loongson module is not free normally when
rmmod. We should free the interrupt resource in loongson_i2c_remove.
Signed-off-by: NHongchen Zhang <zhanghongchen@loongson.cn>
Change-Id: I329560ece8890f5d462b898a814bdcecd5951b6b
上级 df87bdf6
......@@ -508,6 +508,7 @@ static int loongson_i2c_remove(struct platform_device *pdev)
platform_set_drvdata(pdev, NULL);
i2c_del_adapter(&dev->adapter);
free_irq(dev->irq, dev);
iounmap(dev->base);
kfree(dev);
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册