From patchwork Fri Jan 20 11:21:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 92061 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp731163qgi; Fri, 20 Jan 2017 03:24:09 -0800 (PST) X-Received: by 10.99.44.3 with SMTP id s3mr16136713pgs.148.1484911448991; Fri, 20 Jan 2017 03:24:08 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q2si6566145plh.215.2017.01.20.03.24.08; Fri, 20 Jan 2017 03:24:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752041AbdATLWW (ORCPT + 7 others); Fri, 20 Jan 2017 06:22:22 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:36446 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752008AbdATLWS (ORCPT ); Fri, 20 Jan 2017 06:22:18 -0500 Received: by mail-wm0-f53.google.com with SMTP id c85so32868158wmi.1 for ; Fri, 20 Jan 2017 03:22:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yhegOp4MQVN2SP9QpaRf4QiKgNfYzu31hhraFPcIoMM=; b=aKJXNHyaYsrITN1BWUoE7EsHaF5kaYH8CHBfMVg/Tpxze/He9/m8SXd2zLXYlkjevl FcSTbOfTePfM1r1SNncH4BObtV9707cAjmCoYyfrEVGCY8X4Xp3mZ2IO92khYm607b9K 4fuOJwHquYCLS5EbIZLjEenqb3oXNIHwT3zskN+zEBaW0UUM3eLjMibNXoLBTpY6tNtj KlDk8LcIXvyXJ5ZPMU7gyw19wQsh20/5Qzqcjinz8Gvwip/p2TUjtFFFBwf1AaYH4oLb qVlAukETzO934bt3h2kfHwos4NwUDqnAmgnxX/aH2xeGjCoqu/+cf702yxcyYqOHxTth jxUg== 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:in-reply-to :references; bh=yhegOp4MQVN2SP9QpaRf4QiKgNfYzu31hhraFPcIoMM=; b=MSHsJIdLMxIkOIs9AYDhjkKGrT3w+blpJtTOx33s90Dj+X6Ky291ZaC5VovTlyTLdz W5lcr1v14ILORtkVHafFXo4qE2OI82IlTJI5EwtX1Js/1+gQO4KnsJ5couhYlFoQl7su SZO0xXuSDaYTZrYVkNuwuLMN057kwKxj51tgHYvfaMLNaIGUcBahmMVx2EAIRXNpQzRs GsKARCK2HJ5lzMvFIEPG08CFY0CzlJE7yuhtkDkNyfs1dTBxFZRi7Og3JgzFc7wu56TV rWhLT+pd25AlvPNxN2sr0HtwhbIYsSDtJSbUTt2QTn5KELqPui/qXaDQFbOtsv3CwAcU Ncow== X-Gm-Message-State: AIkVDXLYKg8V3TsKyWLwXAvnOImJKYMZcYgf6wFOe7CtDgdq9DGM9xeCb8CYENo/qpKCTzkK X-Received: by 10.223.139.29 with SMTP id n29mr11053136wra.67.1484911336824; Fri, 20 Jan 2017 03:22:16 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l74sm5482402wmg.2.2017.01.20.03.22.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 20 Jan 2017 03:22:16 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski Subject: [PATCH v5 07/14] sata: ahci-da850: add device tree match table Date: Fri, 20 Jan 2017 12:21:58 +0100 Message-Id: <1484911325-23425-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484911325-23425-1-git-send-email-bgolaszewski@baylibre.com> References: <1484911325-23425-1-git-send-email-bgolaszewski@baylibre.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org We're using device tree for da850-lcdk. Add the match table to allow to probe the driver. Signed-off-by: Bartosz Golaszewski --- drivers/ata/ahci_da850.c | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.9.3 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/ata/ahci_da850.c b/drivers/ata/ahci_da850.c index 8cfdc86..7f5328f 100644 --- a/drivers/ata/ahci_da850.c +++ b/drivers/ata/ahci_da850.c @@ -121,11 +121,18 @@ static int ahci_da850_probe(struct platform_device *pdev) static SIMPLE_DEV_PM_OPS(ahci_da850_pm_ops, ahci_platform_suspend, ahci_platform_resume); +static const struct of_device_id ahci_da850_of_match[] = { + { .compatible = "ti,da850-ahci", }, + { }, +}; +MODULE_DEVICE_TABLE(of, ahci_da850_of_match); + static struct platform_driver ahci_da850_driver = { .probe = ahci_da850_probe, .remove = ata_platform_remove_one, .driver = { .name = DRV_NAME, + .of_match_table = ahci_da850_of_match, .pm = &ahci_da850_pm_ops, }, };