summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@imgtec.com>2015-11-30 16:21:40 +0000
committerWolfram Sang <wsa@the-dreams.de>2015-12-03 22:11:46 +0100
commita613d9d48573d3d2f9bba7ed7719c5cc26d3a755 (patch)
tree16b0857b7c0f67d745c9cc320bc5418cf76afb7c /drivers/i2c
parentcc018e3612e4a8244790521e88f9b1b7eb60dab0 (diff)
downloadlinux-stable-a613d9d48573d3d2f9bba7ed7719c5cc26d3a755.tar.gz
linux-stable-a613d9d48573d3d2f9bba7ed7719c5cc26d3a755.tar.bz2
linux-stable-a613d9d48573d3d2f9bba7ed7719c5cc26d3a755.zip
i2c: eg20t: set i2c_adapter->dev.of_node
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-eg20t.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-eg20t.c b/drivers/i2c/busses/i2c-eg20t.c
index 76e699f9ed97..137125b5eae7 100644
--- 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]);