Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2996613AbdDZJu3 (ORCPT ); Wed, 26 Apr 2017 05:50:29 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:36521 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2997906AbdDZJtK (ORCPT ); Wed, 26 Apr 2017 05:49:10 -0400 From: tnhuynh@apm.com To: Wolfram Sang , linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Loc Ho , Phong Vo , Thang Nguyen , patches@apm.com, Tin Huynh Subject: [PATCH V1] i2c: xgene: Set ACPI_COMPANION_I2C Date: Wed, 26 Apr 2017 16:48:51 +0700 Message-Id: <1493200131-30171-1-git-send-email-tnhuynh@apm.com> X-Mailer: git-send-email 1.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 23 From: Tin Huynh 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(-) 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) { -- 1.7.1