mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-14 05:52:16 +01:00
i2c: core: Dispose OF IRQ mapping at client removal time
Clients instantiated from OF get an IRQ mapping created at device registration time. Dispose the mapping when the client is removed. Signed-off-by: Laurent Pinchart <[email protected]> Signed-off-by: Wolfram Sang <[email protected]> Cc: [email protected]
This commit is contained in:
1 parent
11cfbfb098
commit
e4df3a0b62
1 file changed
+3
@@ -665,6 +665,9 @@ static int i2c_device_remove(struct device *dev)
|
||||
status = driver->remove(client);
|
||||
}
|
||||
|
||||
if (dev->of_node)
|
||||
irq_dispose_mapping(client->irq);
|
||||
|
||||
dev_pm_domain_detach(&client->dev, true);
|
||||
return status;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user