From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753590AbbLBToe (ORCPT ); Wed, 2 Dec 2015 14:44:34 -0500 Received: from mail-pf0-f175.google.com ([209.85.192.175]:34765 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897AbbLBTod (ORCPT ); Wed, 2 Dec 2015 14:44:33 -0500 From: Jin Qian To: Greg Kroah-Hartman , Greg Hackmann , Joe Perches , Christoffer Dall , Peter Senna Tschudin , Yu Ning , Jason Hu , =?UTF-8?q?Alex=20Benn=C3=A9e?= , linux-kernel@vger.kernel.org Cc: Jin Qian Subject: [PATCH v3 8/8] goldfish: Enable ACPI-based enumeration for android pipe Date: Wed, 2 Dec 2015 11:36:03 -0800 Message-Id: <1449084968-30211-8-git-send-email-jinqian@android.com> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1449084968-30211-1-git-send-email-jinqian@android.com> References: <1449084968-30211-1-git-send-email-jinqian@android.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jason Hu Add ACPI binding to the android pipe driver Signed-off-by: Jason Hu Signed-off-by: Jin Qian --- drivers/platform/goldfish/goldfish_pipe.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c index c214434..e3fab9a 100644 --- a/drivers/platform/goldfish/goldfish_pipe.c +++ b/drivers/platform/goldfish/goldfish_pipe.c @@ -59,6 +59,7 @@ #include #include #include +#include /* * IMPORTANT: The following constants must match the ones used and defined @@ -650,6 +651,12 @@ static int goldfish_pipe_remove(struct platform_device *pdev) return 0; } +static const struct acpi_device_id goldfish_pipe_acpi_match[] = { + { "GFSH0003", 0 }, + { }, +}; +MODULE_DEVICE_TABLE(acpi, goldfish_pipe_acpi_match); + static const struct of_device_id goldfish_pipe_of_match[] = { { .compatible = "google,android-pipe", }, {}, @@ -663,6 +670,7 @@ static struct platform_driver goldfish_pipe = { .name = "goldfish_pipe", .owner = THIS_MODULE, .of_match_table = goldfish_pipe_of_match, + .acpi_match_table = ACPI_PTR(goldfish_pipe_acpi_match), } }; -- 2.6.0.rc2.230.g3dd15c0