From patchwork Tue Sep 16 11:52:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mika Westerberg X-Patchwork-Id: 4917081 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F1A23BEEA6 for ; Tue, 16 Sep 2014 11:54:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E500D20253 for ; Tue, 16 Sep 2014 11:54:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AEFCC201DE for ; Tue, 16 Sep 2014 11:54:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754191AbaIPLyG (ORCPT ); Tue, 16 Sep 2014 07:54:06 -0400 Received: from mga02.intel.com ([134.134.136.20]:5614 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754125AbaIPLxN (ORCPT ); Tue, 16 Sep 2014 07:53:13 -0400 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by orsmga101.jf.intel.com with ESMTP; 16 Sep 2014 04:53:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.04,534,1406617200"; d="scan'208";a="477850332" Received: from blue.fi.intel.com ([10.237.72.156]) by azsmga001.ch.intel.com with ESMTP; 16 Sep 2014 04:53:04 -0700 Received: by blue.fi.intel.com (Postfix, from userid 1004) id 6973EE00B3; Tue, 16 Sep 2014 14:52:48 +0300 (EEST) From: Mika Westerberg To: "Rafael J. Wysocki" Cc: linux-acpi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Linus Walleij , Alexandre Courbot , Dmitry Torokhov , Bryan Wu , Lee Jones , Grant Likely , Arnd Bergmann , Aaron Lu , Darren Hart , Mika Westerberg Subject: [RFC PATCH v2 16/16] misc: at25: Add ACPI probing support Date: Tue, 16 Sep 2014 14:52:47 +0300 Message-Id: <1410868367-11056-17-git-send-email-mika.westerberg@linux.intel.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1410868367-11056-1-git-send-email-mika.westerberg@linux.intel.com> References: <1410868367-11056-1-git-send-email-mika.westerberg@linux.intel.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for matching using DT compatible string from ACPI _DSD. Signed-off-by: Mika Westerberg --- drivers/misc/eeprom/at25.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/misc/eeprom/at25.c b/drivers/misc/eeprom/at25.c index 58f6cdd2551c..1a760cd966bd 100644 --- a/drivers/misc/eeprom/at25.c +++ b/drivers/misc/eeprom/at25.c @@ -459,11 +459,18 @@ static const struct of_device_id at25_of_match[] = { }; MODULE_DEVICE_TABLE(of, at25_of_match); +static const struct acpi_device_id at25_acpi_match[] = { + { "PRP0001" }, + { } +}; +MODULE_DEVICE_TABLE(acpi, at25_acpi_match); + static struct spi_driver at25_driver = { .driver = { .name = "at25", .owner = THIS_MODULE, .of_match_table = at25_of_match, + .acpi_match_table = at25_acpi_match, }, .probe = at25_probe, .remove = at25_remove,