projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a5063f1
)
i2c: davinci: Free requested IRQ in remove
author
Marcus Folkesson
<marcus.folkesson@gmail.com>
Thu, 3 May 2012 13:56:36 +0000
(15:56 +0200)
committer
Wolfram Sang
<w.sang@pengutronix.de>
Sat, 12 May 2012 18:36:24 +0000
(20:36 +0200)
The freed IRQ is not necessary the one requested in probe.
Even if it was, with two or more i2c-controllers it will fails anyway.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Cc: stable@kernel.org
drivers/i2c/busses/i2c-davinci.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-davinci.c
b/drivers/i2c/busses/i2c-davinci.c
index a76d85fa3ad781d15a90f73875a1c857703d14a8..79b4bcb3b85cea6d79d1c447200748811d74d6fc 100644
(file)
--- a/
drivers/i2c/busses/i2c-davinci.c
+++ b/
drivers/i2c/busses/i2c-davinci.c
@@
-755,7
+755,7
@@
static int davinci_i2c_remove(struct platform_device *pdev)
dev->clk = NULL;
davinci_i2c_write_reg(dev, DAVINCI_I2C_MDR_REG, 0);
- free_irq(
IRQ_I2C
, dev);
+ free_irq(
dev->irq
, dev);
iounmap(dev->base);
kfree(dev);