From patchwork Mon Aug 3 06:59:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shannon Zhao X-Patchwork-Id: 51843 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by patches.linaro.org (Postfix) with ESMTPS id A2631229FD for ; Mon, 3 Aug 2015 07:05:44 +0000 (UTC) Received: by wijp15 with SMTP id p15sf10445894wij.3 for ; Mon, 03 Aug 2015 00:05:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:mime-version:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe:cc :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=pXrU6p5Rseog+fHIBUW69iygvn3TGVwtSJ4zVEvqtRs=; b=kx9U+6pVQEmFjgYwKrGRXvzABHHwYcGPm7LMVkmu/i8q3X/npV+AHGdf4RU5mp/v2P TYYfTUQZL/GntpbuyzVVh/TP04BI+e7+UXqPbmkRj+W4giMQRRIAoL0MeNxGSFeY3S6P jbpF0JIm8gdD5o1PbR0hy7ITyVF0sAHYmTCdYjTEtxjTpBoHwR0ZIALiLtHfq2PbTdfi UhmoHFNK8WGucK+jiCX5lTCj8Xe/EYW9ONH/iwV2JjXSvcw/RJL0Hid7xYk+OvlyK65Z RwB5yoFwpA9CfEAa7xqe26mehMQ9Rg8jQM0rv6nwLTu4oAlBpi3NLBLPlGnzcQQF/HRH QZFA== X-Gm-Message-State: ALoCoQkThJNT8IElERNPasT5j+HYvP4VcRd0JsJa4NNRZkFfb4TF2Fir7DJtEMU2NS9g7W2fealm X-Received: by 10.152.27.130 with SMTP id t2mr5128263lag.2.1438585543928; Mon, 03 Aug 2015 00:05:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.10 with SMTP id m10ls140242laj.22.gmail; Mon, 03 Aug 2015 00:05:43 -0700 (PDT) X-Received: by 10.112.139.131 with SMTP id qy3mr15166471lbb.4.1438585543665; Mon, 03 Aug 2015 00:05:43 -0700 (PDT) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com. [209.85.217.172]) by mx.google.com with ESMTPS id w18si11197958laz.27.2015.08.03.00.05.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 00:05:43 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) client-ip=209.85.217.172; Received: by lbbyj8 with SMTP id yj8so72678490lbb.0 for ; Mon, 03 Aug 2015 00:05:43 -0700 (PDT) X-Received: by 10.112.125.34 with SMTP id mn2mr13872824lbb.76.1438585543098; Mon, 03 Aug 2015 00:05:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp1701833lba; Mon, 3 Aug 2015 00:05:41 -0700 (PDT) X-Received: by 10.68.136.234 with SMTP id qd10mr20902119pbb.162.1438585540857; Mon, 03 Aug 2015 00:05:40 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id z3si24909806pdl.29.2015.08.03.00.05.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2015 00:05:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZM9nT-00048p-Mt; Mon, 03 Aug 2015 07:04:31 +0000 Received: from szxga01-in.huawei.com ([58.251.152.64]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZM9nQ-0003pO-1k for linux-arm-kernel@lists.infradead.org; Mon, 03 Aug 2015 07:04:29 +0000 Received: from 172.24.1.48 (EHLO szxeml432-hub.china.huawei.com) ([172.24.1.48]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CSF60714; Mon, 03 Aug 2015 15:00:25 +0800 (CST) Received: from HGHY1Z002260041.china.huawei.com (10.177.16.142) by szxeml432-hub.china.huawei.com (10.82.67.209) with Microsoft SMTP Server id 14.3.158.1; Mon, 3 Aug 2015 15:00:14 +0800 From: Shannon Zhao To: , , Subject: [PATCH 2/2] drivers: PL061: add ACPI probing for PL061 Date: Mon, 3 Aug 2015 14:59:58 +0800 Message-ID: <1438585198-8764-3-git-send-email-zhaoshenglong@huawei.com> X-Mailer: git-send-email 1.9.0.msysgit.0 In-Reply-To: <1438585198-8764-1-git-send-email-zhaoshenglong@huawei.com> References: <1438585198-8764-1-git-send-email-zhaoshenglong@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.177.16.142] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150803_000428_510939_774F2EF3 X-CRM114-Status: GOOD ( 11.86 ) X-Spam-Score: -4.3 (----) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-4.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [58.251.152.64 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [58.251.152.64 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.1 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Cc: shannon.zhao@linaro.org, zhaoshenglong@huawei.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Shannon Zhao Add the necessary driver boilerplate to let the driver be used when the respective ACPI table is discovered by the ACPI subsystem. Signed-off-by: Shannon Zhao Signed-off-by: Shannon Zhao --- drivers/gpio/gpio-pl061.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c index 64c10eb..41fcf7b 100644 --- a/drivers/gpio/gpio-pl061.c +++ b/drivers/gpio/gpio-pl061.c @@ -25,6 +25,7 @@ #include #include #include +#include #define GPIODIR 0x400 #define GPIOIS 0x404 @@ -471,10 +472,17 @@ static const struct of_device_id pl061_of_match[] = { }; MODULE_DEVICE_TABLE(of, pl061_of_match); +static const struct acpi_device_id pl061_acpi_match[] = { + { "ARMH0061",}, + { } +}; +MODULE_DEVICE_TABLE(acpi, pl061_acpi_match); + static struct platform_driver pl061_gpio_platform_driver = { .driver = { .name = "pl061_gpio", .of_match_table = pl061_of_match, + .acpi_match_table = ACPI_PTR(pl061_acpi_match), #ifdef CONFIG_PM .pm = &pl061_dev_pm_ops, #endif