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:
6e24d20
)
i2c: cadence: set THIS_MODULE to the owner of the adapter
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Tue, 21 Jul 2015 07:14:36 +0000
(16:14 +0900)
committer
Wolfram Sang
<wsa@the-dreams.de>
Mon, 10 Aug 2015 06:37:38 +0000
(08:37 +0200)
The owner of the adapter is missing, while this driver is tristate.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-cadence.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-cadence.c
b/drivers/i2c/busses/i2c-cadence.c
index 18e48ae4a60da6fcb9e8011aab88bb8b72c96279..84deed6571bdf45296b9cb906087d305c9340e55 100644
(file)
--- a/
drivers/i2c/busses/i2c-cadence.c
+++ b/
drivers/i2c/busses/i2c-cadence.c
@@
-896,6
+896,7
@@
static int cdns_i2c_probe(struct platform_device *pdev)
id->irq = platform_get_irq(pdev, 0);
+ id->adap.owner = THIS_MODULE;
id->adap.dev.of_node = pdev->dev.of_node;
id->adap.algo = &cdns_i2c_algo;
id->adap.timeout = CDNS_I2C_TIMEOUT;