diff mbox

[V1] i2c: xgene: Set ACPI_COMPANION_I2C

Message ID 1493200131-30171-1-git-send-email-tnhuynh@apm.com
State Changes Requested
Headers show

Commit Message

tnhuynh@apm.com April 26, 2017, 9:48 a.m. UTC
From: Tin Huynh <tnhuynh@apm.com>

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.
---
 drivers/i2c/busses/i2c-xgene-slimpro.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

Wolfram Sang May 16, 2017, 9:40 p.m. UTC | #1
On Wed, Apr 26, 2017 at 04:48:51PM +0700, tnhuynh@apm.com wrote:
> From: Tin Huynh <tnhuynh@apm.com>
> 
> 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.

Again, no Signed-off. I can't apply it without one. lso, please add your
full name to the mail header.
diff mbox

Patch

diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c
index dbe7e44..6ba6c83 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) {