From patchwork Wed May 17 04:25:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tnhuynh@apm.com X-Patchwork-Id: 9729985 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4464D60138 for ; Wed, 17 May 2017 04:25:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36DEA28644 for ; Wed, 17 May 2017 04:25:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2964F286B7; Wed, 17 May 2017 04:25:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9461B28644 for ; Wed, 17 May 2017 04:25:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751744AbdEQEZt (ORCPT ); Wed, 17 May 2017 00:25:49 -0400 Received: from mail-pg0-f53.google.com ([74.125.83.53]:33820 "EHLO mail-pg0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751788AbdEQEZs (ORCPT ); Wed, 17 May 2017 00:25:48 -0400 Received: by mail-pg0-f53.google.com with SMTP id u28so839895pgn.1 for ; Tue, 16 May 2017 21:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id; bh=2SA9QmM1+2bl+5W0BvY38+3WJZm0j54LXkhMp2czbU0=; b=G22VG1VeO6UqTvfTNpvQiSmqKSMiLF4HDrp7pCfqxEHF4syQmtC2Bcod2fNdjlhlaL py7ehIB/yO1c8nsLPQNVGuyHkSAzdfGep5ZDRaNUT8RpztUZ39vGnCSXVXyh2VUblhdB nyx+zH+XwAVxixBcSe3THzx3xxEHjumXZsfUM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2SA9QmM1+2bl+5W0BvY38+3WJZm0j54LXkhMp2czbU0=; b=sr7o/fSk2e6smwQ4lUmp+W10VtrwLrc0eLe90ER2ynd4bX5KH78ZCs9EbdAlzW6M1a tr/opjRJb8Y5MyOOWiaZjxHYjCH8qro3xxA0zXWjgB8DRJFo/6OqdA4pOgYVmDMolOfH psTQlqpTPKY5209wCHKCwDudBIljiVQ2rPfLwLccWSrPVtDHxS9j9x6rRftCMUHo9Txr mc/RQWtM5itpyAIvncgxez97FTSDJjpsmtk5qCAv6y65iTjr4bGpEAuUURdS+PD9+KfG 9uIbUs9e7zpFciW+FoUWsGRQ/DCcTzSuS/pFgScvOEWo5WL/5JJffzsHnkf77dpRSh3h QP1Q== X-Gm-Message-State: AODbwcAbmM7O+1QXwgF7Vs9pJUmXQPtIESgXJQrRAYinxD0wo/GAB9Dr kc2Lz86p86PEgfsV X-Received: by 10.84.174.3 with SMTP id q3mr1832166plb.179.1494995148043; Tue, 16 May 2017 21:25:48 -0700 (PDT) Received: from localhost.localdomain ([118.69.219.197]) by smtp.gmail.com with ESMTPSA id e24sm972838pgn.1.2017.05.16.21.25.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 May 2017 21:25:46 -0700 (PDT) From: Tin Huynh 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 V2] i2c: xgene: Set ACPI_COMPANION_I2C Date: Wed, 17 May 2017 11:25:34 +0700 Message-Id: <1494995134-4124-1-git-send-email-tnhuynh@apm.com> X-Mailer: git-send-email 1.7.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/i2c/busses/i2c-xgene-slimpro.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) Change from V1: - Add Signed-off and full name to the mail header. 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) {