* [PATCH V1] i2c: xgene: Fix missing code of DTB support
@ 2016-12-14 7:17 Tin Huynh
2016-12-17 18:36 ` Wolfram Sang
0 siblings, 1 reply; 2+ messages in thread
From: Tin Huynh @ 2016-12-14 7:17 UTC (permalink / raw)
To: Wolfram Sang
Cc: linux-i2c, linux-kernel, Loc Ho, Thang Nguyen, Phong Vo,
Duc Dang, Dien Tien Hoang Nguyen, patches, Tin Huynh
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>
---
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 263685c..00d1632 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) {
--
1.7.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH V1] i2c: xgene: Fix missing code of DTB support
2016-12-14 7:17 [PATCH V1] i2c: xgene: Fix missing code of DTB support Tin Huynh
@ 2016-12-17 18:36 ` Wolfram Sang
0 siblings, 0 replies; 2+ messages in thread
From: Wolfram Sang @ 2016-12-17 18:36 UTC (permalink / raw)
To: Tin Huynh
Cc: linux-i2c, linux-kernel, Loc Ho, Thang Nguyen, Phong Vo,
Duc Dang, Dien Tien Hoang Nguyen, patches
[-- Attachment #1: Type: text/plain, Size: 311 bytes --]
On Wed, Dec 14, 2016 at 02:17:26PM +0700, Tin Huynh wrote:
> 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>
Applied to for-current, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-12-17 18:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14 7:17 [PATCH V1] i2c: xgene: Fix missing code of DTB support Tin Huynh
2016-12-17 18:36 ` Wolfram Sang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.