From patchwork Sun Jan 26 16:48:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 3539921 Return-Path: X-Original-To: patchwork-linux-sh@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 EFB6BC02DC for ; Sun, 26 Jan 2014 16:49:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2E4712011E for ; Sun, 26 Jan 2014 16:49:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 90B712011D for ; Sun, 26 Jan 2014 16:49:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752972AbaAZQt0 (ORCPT ); Sun, 26 Jan 2014 11:49:26 -0500 Received: from 82-68-191-81.dsl.posilan.com ([82.68.191.81]:41219 "EHLO rainbowdash.ducie.codethink.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752480AbaAZQtK (ORCPT ); Sun, 26 Jan 2014 11:49:10 -0500 Received: from ben by rainbowdash.ducie.codethink.co.uk with local (Exim 4.82) (envelope-from ) id 1W7StO-0007Kc-JM; Sun, 26 Jan 2014 16:49:06 +0000 From: Ben Dooks To: linux-kernel@lists.codethink.co.uk Cc: Ben Dooks , Bjorn Helgaas , Simon Horman , linux-pci@vger.kernel.org, linux-sh@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/8] pci-rcar-gen2: add of match table Date: Sun, 26 Jan 2014 16:48:58 +0000 Message-Id: <1390754945-28142-2-git-send-email-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1390754945-28142-1-git-send-email-ben.dooks@codethink.co.uk> References: <1390754945-28142-1-git-send-email-ben.dooks@codethink.co.uk> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 OF match table for pci-rcar-gen2 driver for device tree support. Signed-off-by: Ben Dooks --- Cc: Bjorn Helgaas Cc: Simon Horman Cc: linux-pci@vger.kernel.org Cc: linux-sh@vger.kernel.org Cc: devicetree@vger.kernel.org --- drivers/pci/host/pci-rcar-gen2.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/pci/host/pci-rcar-gen2.c b/drivers/pci/host/pci-rcar-gen2.c index ceec147..ea65bac 100644 --- a/drivers/pci/host/pci-rcar-gen2.c +++ b/drivers/pci/host/pci-rcar-gen2.c @@ -311,9 +311,17 @@ static int __init rcar_pci_probe(struct platform_device *pdev) return rcar_pci_add_controller(priv); } +static struct of_device_id rcar_pci_of_match[] = { + { .compatible = "renesas,pci-r8a7790", }, + { }, +}; + +MODULE_DEVICE_TABLE(of, rcar_pci_of_match); + static struct platform_driver rcar_pci_driver = { .driver = { .name = "pci-rcar-gen2", + .of_match_table = rcar_pci_of_match, }, };