projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f638c1
)
i2c: xgene: Fix missing code of DTB support
author
Tin Huynh
<tnhuynh@apm.com>
Wed, 14 Dec 2016 07:17:26 +0000
(14:17 +0700)
committer
Wolfram Sang
<wsa@the-dreams.de>
Sat, 17 Dec 2016 18:35:41 +0000
(19:35 +0100)
In DTB case, i2c-core doesn't create slave device which is installed
on i2c-xgene bus because of missing code in this driver.
This patch fixes this issue.
Signed-off-by: Tin Huynh <tnhuynh@apm.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-xgene-slimpro.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-xgene-slimpro.c
b/drivers/i2c/busses/i2c-xgene-slimpro.c
index 05cf192ef1acae340397d9ff67f942bca6d08d3e..0ab1e55558bcd7a520afd8dcf07ae3d8cb77e1c0 100644
(file)
--- a/
drivers/i2c/busses/i2c-xgene-slimpro.c
+++ b/
drivers/i2c/busses/i2c-xgene-slimpro.c
@@
-415,6
+415,7
@@
static int xgene_slimpro_i2c_probe(struct platform_device *pdev)
adapter->algo = &xgene_slimpro_i2c_algorithm;
adapter->class = I2C_CLASS_HWMON;
adapter->dev.parent = &pdev->dev;
+ adapter->dev.of_node = pdev->dev.of_node;
i2c_set_adapdata(adapter, ctx);
rc = i2c_add_adapter(adapter);
if (rc) {