From patchwork Sat Jan 18 15:10:21 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Dooks X-Patchwork-Id: 3508581 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 5FC13C02DC for ; Sat, 18 Jan 2014 15:10:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 706FF20121 for ; Sat, 18 Jan 2014 15:10:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 95A092017D for ; Sat, 18 Jan 2014 15:10:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752499AbaARPKj (ORCPT ); Sat, 18 Jan 2014 10:10:39 -0500 Received: from 82-68-191-81.dsl.posilan.com ([82.68.191.81]:51652 "EHLO rainbowdash.ducie.codethink.co.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751305AbaARPKi (ORCPT ); Sat, 18 Jan 2014 10:10:38 -0500 X-Greylist: delayed 414 seconds by postgrey-1.27 at vger.kernel.org; Sat, 18 Jan 2014 10:10:38 EST Received: from ben by rainbowdash.ducie.codethink.co.uk with local (Exim 4.82) (envelope-from ) id 1W4XXa-0003oA-8O; Sat, 18 Jan 2014 15:10:30 +0000 From: Ben Dooks To: linux-kernel@lists.codethink.co.uk, linux-sh@vger.kernel.org Cc: Ben Dooks , Bjorn Helgaas , Simon Horman , linux-pci@vger.kernel.org (open list:PCI DRIVER FOR RE...), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND...) Subject: [PATCH] pci-rcar-gen2: add of match table Date: Sat, 18 Jan 2014 15:10:21 +0000 Message-Id: <1390057821-14604-1-git-send-email-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1390057420-13226-2-git-send-email-ben.dooks@codethink.co.uk> References: <1390057420-13226-2-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.3 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 (supporter:PCI SUBSYSTEM) Cc: Simon Horman (maintainer:PCI DRIVER FOR RE...) Cc: linux-pci@vger.kernel.org (open list:PCI DRIVER FOR RE...) Cc: linux-sh@vger.kernel.org (open list:PCI DRIVER FOR RE...) Cc: devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND...) --- 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, }, };