summaryrefslogtreecommitdiff
path: root/drivers/i2c
diff options
context:
space:
mode:
authorTin Huynh <tnhuynh@apm.com>2017-05-17 11:25:34 +0700
committerWolfram Sang <wsa@the-dreams.de>2017-05-17 09:21:06 +0200
commit83345d51a49a4b3f3b4a08a5db644dae438b0189 (patch)
tree58c2c1be49d9d103a7fb66bfa2b13af73e77f6f0 /drivers/i2c
parent88ad60c23a394b2f8bf1e570c756f415435d1d35 (diff)
downloadlinux-83345d51a49a4b3f3b4a08a5db644dae438b0189.tar.gz
linux-83345d51a49a4b3f3b4a08a5db644dae438b0189.tar.xz
i2c: xgene: Set ACPI_COMPANION_I2C
With ACPI, i2c-core requires ACPI companion to be set in order for it to create slave device. This patch sets the ACPI companion accordingly. Signed-off-by: Tin Huynh <tnhuynh@apm.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-xgene-slimpro.c1
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 dbe7e44c9321..6ba6c83ca8f1 100644
--- a/drivers/i2c/busses/i2c-xgene-slimpro.c
+++ b/drivers/i2c/busses/i2c-xgene-slimpro.c
@@ -416,6 +416,7 @@ static int xgene_slimpro_i2c_probe(struct platform_device *pdev)
adapter->class = I2C_CLASS_HWMON;
adapter->dev.parent = &pdev->dev;
adapter->dev.of_node = pdev->dev.of_node;
+ ACPI_COMPANION_SET(&adapter->dev, ACPI_COMPANION(&pdev->dev));
i2c_set_adapdata(adapter, ctx);
rc = i2c_add_adapter(adapter);
if (rc) {