From patchwork Mon Jan 30 10:02:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9544625 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 122F2604A8 for ; Mon, 30 Jan 2017 10:05:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F029827D76 for ; Mon, 30 Jan 2017 10:05:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E356C27F85; Mon, 30 Jan 2017 10:05:55 +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=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AC35127D76 for ; Mon, 30 Jan 2017 10:05:55 +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 1cY8qP-0004aX-Ls; Mon, 30 Jan 2017 10:05:53 +0000 Received: from mail-wm0-f47.google.com ([74.125.82.47]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cY8oJ-0001tR-Gb for linux-arm-kernel@lists.infradead.org; Mon, 30 Jan 2017 10:03:45 +0000 Received: by mail-wm0-f47.google.com with SMTP id 196so5701559wmm.1 for ; Mon, 30 Jan 2017 02:03:24 -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=Ul+g/DZbdUoIgrUHIBw9FKjQ+5WmoMZFlBqd8yilaew=; b=qtv55WPS7wzUR9AASSW6klAzndiDTMgCrmo2xfvAqAHIl879s3XXDht/iekZS6Jbjt pjqwcbX/PwtL+gSf1+D1MGFmmIRWSx3xUxyI92hq4dx4iQuemf02Hfj6ieorVzJwqLtd 3s7S9gi6uME8olPboXS8ToRDX/Dn8iAiJ1GyCMwJLr+Sj6aocLOjxlUo1jypc33I076V RNOhLqNR8qqeImTQGRUwf2YCkhg1ChT0d6s7mIoXoSyIB9O9gRUezAW6i7RfyqtCeLAE lRI1VCb4m9py6ihx1S6pzHatTE33qbDme8IuHVgZc8riqaSiGAO62F2NlqH6M5592l81 qBiQ== 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=Ul+g/DZbdUoIgrUHIBw9FKjQ+5WmoMZFlBqd8yilaew=; b=uRzF56h4Hk5c8jjv4sIm5ycYPuRGUXHO8mu02Zuv4wYbta9mr/OLqHrJspgxaELRXC 7NQmSrjzQjtZXU5RMayZxmlTgAAdlR+E4I2uAL0JJ7QxLSZO1XMMg27ogvVVus3lFj7n Yh6FbFN83SCrJFlRgfVHSBQ/fJYhk4+KiY9T+dvB4F8kzo1bxUJH3tBd4L+EvmC270lk HUR1/qR34pwWL7AcRHDsWfdc/u8rgAf8BJjMtZWD5EDdS1JG+0sVzYrxrNLjPfW+mS2W Vg4TIGu+M/pVDAZOkyDxJIuAj+KMqV/ghX4YM9XWUCxMhrIXdngvQHKVbeJdgIM9VmNX LMbw== X-Gm-Message-State: AIkVDXLZhWr0tmxcsYdPY41SOOjMeqgqhRY3GX+q+vzTJbpmaQuSfwxqdysUzare8wLPMSD/ X-Received: by 10.223.164.207 with SMTP id h15mr17209516wrb.142.1485770542671; Mon, 30 Jan 2017 02:02:22 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id j18sm21939536wrb.33.2017.01.30.02.02.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Jan 2017 02:02:22 -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 v7 07/14] sata: ahci-da850: add device tree match table Date: Mon, 30 Jan 2017 11:02:04 +0100 Message-Id: <1485770531-6772-8-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1485770531-6772-1-git-send-email-bgolaszewski@baylibre.com> References: <1485770531-6772-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170130_020343_726153_0E56C5A6 X-CRM114-Status: GOOD ( 11.14 ) 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 Acked-by: Tejun Heo --- 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 e397bab..72126a0 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, }, };