i2c: eg20t: set i2c_adapter->dev.of_node
authorPaul Burton <paul.burton@imgtec.com>
Mon, 30 Nov 2015 16:21:40 +0000 (16:21 +0000)
committerWolfram 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

index 76e699f9ed9732cb910fd6092837d1ddf13c37c5..137125b5eae77ca07fae38d52475341b01df5c76 100644 (file)
@@ -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]);
This page took 0.027606 seconds and 5 git commands to generate.