From patchwork Wed Jan 18 13:19:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9523757 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 15D396020A for ; Wed, 18 Jan 2017 13:24:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 064FC20246 for ; Wed, 18 Jan 2017 13:24:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EE41C285E8; Wed, 18 Jan 2017 13:24:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8B86520246 for ; Wed, 18 Jan 2017 13:24:36 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cTqE6-0002eI-Bu; Wed, 18 Jan 2017 13:24:34 +0000 Received: from mail-wm0-x229.google.com ([2a00:1450:400c:c09::229]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cTqAR-0006lH-Cz for linux-arm-kernel@lists.infradead.org; Wed, 18 Jan 2017 13:20:51 +0000 Received: by mail-wm0-x229.google.com with SMTP id c85so243934323wmi.1 for ; Wed, 18 Jan 2017 05:20:26 -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=g97NrPdycgA939lYno4bCIpekUYP8XUEXCBFjH7kKhdmI+1donnbjfdgyAJYxSeXm5 wwOUJ2WGrkxCmZwwIT9SRn5tPPI/l85u+aAXckUHVZSi5qku5fgoQXijYLQUjlYacBqn 4GtUB3Ub8NPfpNJHWv4+k/GcYyDwS5Llz6bcQHqYwvL+Fo9aTDYNm2hM2t9n+awlofGT W1Qm1zKwE6k09ke4Ic6Y9TKYAoOntZnO0s7PwyGZ2s4uY6dIvpNHNu5+oqdIc8eIe96i S6kPf8rAwdjZuyQqcfrhYP+B3f/cyviUpOHJN7SLT/cN4t9OTB+/3AGSpjoubODqdjxx 6Y5w== 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=RK4c8pKOn+ycaqIhaLE5y6IUnpD0B/CzmHGXyeBUhCm77zdwVfUBcOCdia6xEV8+42 qYaP4/MxuolnCq2RS+wp/i3wp2dRQlB36ALwZ0r0W8o4BKwWY/Oclqlig+72Wre+/W0c WO37/p8OfN85Rc6wdfIT6LfioZMBsdoXa4+jKfuUUpiEcOSt+frRtDin4Jet3oY7oeg0 44JeIc0Rt8ZpvT/SusoICuMrOmEVMCUYBMoZ/y0nt0WEzLgSdbFNtOHSBzwtiBPaGOo2 mFiMbP6JjAcumUF2LvEchOsn73hWCs752XZfB6JC/SD/ONr4wPQCvBygrerHjk7hp6yM HfmQ== X-Gm-Message-State: AIkVDXI/pVBHhNqiuuN+tiAcsjN3l0LSY3jdGPUp61PfXeyt1TOjzi3OLJG5Y8knAQgS9h05 X-Received: by 10.28.131.132 with SMTP id f126mr10440601wmd.61.1484745625412; Wed, 18 Jan 2017 05:20:25 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id w79sm4899569wmw.0.2017.01.18.05.20.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Jan 2017 05:20:24 -0800 (PST) From: Bartosz Golaszewski To: Kevin Hilman , Sekhar Nori , Patrick Titiano , Michael Turquette , Tejun Heo , Rob Herring , Mark Rutland , Russell King , David Lechner Subject: [PATCH v3 07/13] sata: ahci-da850: add device tree match table Date: Wed, 18 Jan 2017 14:19:55 +0100 Message-Id: <1484745601-4769-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> References: <1484745601-4769-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170118_052047_676341_6F0E0C32 X-CRM114-Status: GOOD ( 11.27 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-ide@vger.kernel.org, Bartosz Golaszewski , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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(+) 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, }, };