Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964910AbbDVWTm (ORCPT ); Wed, 22 Apr 2015 18:19:42 -0400 Received: from exprod5og125.obsmtp.com ([64.18.0.245]:45345 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934363AbbDVWSq (ORCPT ); Wed, 22 Apr 2015 18:18:46 -0400 From: Feng Kan To: patches@apm.com, jassisinghbrar@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Cc: Feng Kan Subject: [PATCH V2 2/4] mailbox: xgene: add ACPI support for X-Gene mailbox driver Date: Wed, 22 Apr 2015 15:18:43 -0700 Message-Id: <1429741125-29156-3-git-send-email-fkan@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429741125-29156-1-git-send-email-fkan@apm.com> References: <1429741125-29156-1-git-send-email-fkan@apm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1516 Lines: 50 Add ACPI support for APM X-Gene mailbox driver. Signed-off-by: Feng Kan --- drivers/mailbox/mailbox-xgene-slimpro.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/mailbox/mailbox-xgene-slimpro.c b/drivers/mailbox/mailbox-xgene-slimpro.c index 49370e5..890f95b 100644 --- a/drivers/mailbox/mailbox-xgene-slimpro.c +++ b/drivers/mailbox/mailbox-xgene-slimpro.c @@ -18,6 +18,7 @@ * along with this program; if not, see . * */ +#include #include #include #include @@ -240,6 +241,14 @@ static const struct of_device_id slimpro_of_match[] = { }; MODULE_DEVICE_TABLE(of, slimpro_of_match); +#ifdef CONFIG_ACPI +static const struct acpi_device_id slimpro_acpi_ids[] = { + {"APMC0D01", 0}, + {} +}; +MODULE_DEVICE_TABLE(acpi, slimpro_acpi_ids); +#endif + static struct platform_driver slimpro_mbox_driver = { .probe = slimpro_mbox_probe, .remove = slimpro_mbox_remove, @@ -247,6 +256,7 @@ static struct platform_driver slimpro_mbox_driver = { .name = "xgene-slimpro-mbox", .owner = THIS_MODULE, .of_match_table = of_match_ptr(slimpro_of_match), + .acpi_match_table = ACPI_PTR(slimpro_acpi_ids) }, }; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/