summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorOctavian Purdila <octavian.purdila@intel.com>2015-03-27 17:37:10 +0200
committerWolfram Sang <wsa@the-dreams.de>2015-03-27 16:56:21 +0100
commit3b10db23c0411524357c5834731df2e24897b53b (patch)
tree3b1e11c53950ca95d51f1a6eb7549759a165c543 /drivers/i2c
parentd9e1f4417a43cd0871253b2158eae07a48d656b5 (diff)
downloadop-kernel-dev-3b10db23c0411524357c5834731df2e24897b53b.zip
op-kernel-dev-3b10db23c0411524357c5834731df2e24897b53b.tar.gz
i2c: dln2: set the device tree node of the adapter
This patch makes sure the platform device tree node is inherited by the adapter device. This allows the DLN2 bus to work with i2c devices defined in the device tree. Signed-off-by: Octavian Purdila <octavian.purdila@intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-dln2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-dln2.c b/drivers/i2c/busses/i2c-dln2.c
index b6f9ba7..1600edd 100644
--- a/drivers/i2c/busses/i2c-dln2.c
+++ b/drivers/i2c/busses/i2c-dln2.c
@@ -210,6 +210,7 @@ static int dln2_i2c_probe(struct platform_device *pdev)
dln2->adapter.algo = &dln2_i2c_usb_algorithm;
dln2->adapter.quirks = &dln2_i2c_quirks;
dln2->adapter.dev.parent = dev;
+ dln2->adapter.dev.of_node = dev->of_node;
i2c_set_adapdata(&dln2->adapter, dln2);
snprintf(dln2->adapter.name, sizeof(dln2->adapter.name), "%s-%s-%d",
"dln2-i2c", dev_name(pdev->dev.parent), dln2->port);
OpenPOWER on IntegriCloud