projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc018e3
)
i2c: eg20t: set i2c_adapter->dev.of_node
author
Paul Burton
<paul.burton@imgtec.com>
Mon, 30 Nov 2015 16:21:40 +0000
(16:21 +0000)
committer
Wolfram Sang
<wsa@the-dreams.de>
Thu, 3 Dec 2015 21:11:46 +0000
(22:11 +0100)
Set the I2C adapter devices of_node to that of the PCI device, such that
I2C clients may be instantiated via device tree.
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-eg20t.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/busses/i2c-eg20t.c
b/drivers/i2c/busses/i2c-eg20t.c
index 76e699f9ed9732cb910fd6092837d1ddf13c37c5..137125b5eae77ca07fae38d52475341b01df5c76 100644
(file)
--- a/
drivers/i2c/busses/i2c-eg20t.c
+++ b/
drivers/i2c/busses/i2c-eg20t.c
@@
-795,6
+795,7
@@
static int pch_i2c_probe(struct pci_dev *pdev,
/* base_addr + offset; */
adap_info->pch_data[i].pch_base_address = base_addr + 0x100 * i;
+ pch_adap->dev.of_node = pdev->dev.of_node;
pch_adap->dev.parent = &pdev->dev;
pch_i2c_init(&adap_info->pch_data[i]);