diff options
author | Tin Huynh <tnhuynh@apm.com> | 2017-05-17 06:25:34 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-05-17 09:21:06 +0200 |
commit | 83345d51a49a4b3f3b4a08a5db644dae438b0189 (patch) | |
tree | 58c2c1be49d9d103a7fb66bfa2b13af73e77f6f0 /drivers/i2c/busses/i2c-xgene-slimpro.c | |
parent | i2c: mv64xxx: don't override deferred probing when getting irq (diff) | |
download | linux-83345d51a49a4b3f3b4a08a5db644dae438b0189.tar.xz linux-83345d51a49a4b3f3b4a08a5db644dae438b0189.zip |
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/busses/i2c-xgene-slimpro.c')
-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 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) { |