diff options
author | Tin Huynh <tnhuynh@apm.com> | 2016-12-14 10:17:26 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-12-17 21:35:41 +0300 |
commit | 1635c5d04ea9343f0e3c74709c29995a23801ecd (patch) | |
tree | 131f732091c3b23492a5fc817a7c9d8818d01036 /drivers | |
parent | 7f638c1cb0a1112dbe0b682a42db30521646686b (diff) | |
download | linux-1635c5d04ea9343f0e3c74709c29995a23801ecd.tar.xz |
i2c: xgene: Fix missing code of DTB support
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/i2c/busses/i2c-xgene-slimpro.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c index 05cf192ef1ac..0ab1e55558bc 100644 --- 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) { |