From patchwork Tue Jan 17 12:26:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 91614 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp463056qgi; Tue, 17 Jan 2017 04:27:03 -0800 (PST) X-Received: by 10.98.21.131 with SMTP id 125mr43269020pfv.110.1484656023637; Tue, 17 Jan 2017 04:27:03 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si24809716pln.60.2017.01.17.04.27.03; Tue, 17 Jan 2017 04:27:03 -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 S1751333AbdAQM06 (ORCPT + 7 others); Tue, 17 Jan 2017 07:26:58 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37568 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751327AbdAQM04 (ORCPT ); Tue, 17 Jan 2017 07:26:56 -0500 Received: by mail-wm0-f41.google.com with SMTP id c206so220271783wme.0 for ; Tue, 17 Jan 2017 04:26:56 -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=QGoY4TvSbzQVkszVNVfcWrdN5/+ZxapKh6Y3PHWN8cc=; b=bV5pm6QRHWNFcixZxgOUpz4sP2P6kN72xgHBPXuadCH/byB4BTbUeC+dZlxDFGAAhE PkhxWvKMArRzlspBkBQeDX17yRBRDGidH0iB8FtSfXI+nXBqvq5eWCY1K+XAoCdJT8dg TR8ZPbPmLU7uQdgrXepbZajN6DAbvyRNLQZ/zKtQbbM58P2/etxy74mt3r6jgYGpIDSp 4mgSXOhpFL6GPyeTlKK+3FFxMmCH2YG2mS26ae02l1wYuGMrnmj7oRN4J7sAZUZPigmx ycnb2s8tPpAOaiBgNOb2ARrPBB5OXeObei09ntgeODZ/CUAwlBLd3G4fcD6HMRSY/PTN WPpg== 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=QGoY4TvSbzQVkszVNVfcWrdN5/+ZxapKh6Y3PHWN8cc=; b=brSP6ct2oRRWlI+PgC/z66wGQ2R/A63BVadjCuMSemGoqA6bFfQfGCR+xAkBpRHYUr lGGU+rKC3LXQzqRQaHmUCgGONJWN+fk9tgxKpi3tVFF3Tpy9VfrUIkf3FFztU4OpwBtV ZfJSg1ExHLU/wQk3m8RmqtoLhcp4paPFtDRC8yVFCj+qIA+goa5im9AzIcwR6vwMgHu9 4M5oOfH010r+llQZIyie4BN4H42qFsMuQkfNUUbAYRbN3KHD4C+Js/i8ei8AG7KDU8XY EcHA+9RH2rmU9dSiCX8ImNAN1r+k49DCyc+Rk8Yu9ZDt0KdAqyMGEtLKMO1e3ICumQx9 iNAw== X-Gm-Message-State: AIkVDXI8PLlqIiOvulpNscp6KX6tk8TB+J3dyIcmVemZTO+CK1QtRL+3CABSqCaNfKcHGRws X-Received: by 10.28.210.65 with SMTP id j62mr15649327wmg.9.1484656015096; Tue, 17 Jan 2017 04:26:55 -0800 (PST) Received: from bgdev-debian.lan (jua06-1-82-242-157-225.fbx.proxad.net. [82.242.157.225]) by smtp.gmail.com with ESMTPSA id o143sm5466112wmd.3.2017.01.17.04.26.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jan 2017 04:26:54 -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 v2 07/14] sata: ahci-da850: add device tree match table Date: Tue, 17 Jan 2017 13:26:09 +0100 Message-Id: <1484655976-25382-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484655976-25382-1-git-send-email-bgolaszewski@baylibre.com> References: <1484655976-25382-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 18f57c2..c071701 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, }, };