]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
i2c: xgene: Fix missing code of DTB support
authorTin Huynh <tnhuynh@apm.com>
Wed, 14 Dec 2016 07:17:26 +0000 (14:17 +0700)
committerWolfram 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

index 05cf192ef1acae340397d9ff67f942bca6d08d3e..0ab1e55558bcd7a520afd8dcf07ae3d8cb77e1c0 100644 (file)
@@ -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) {