From patchwork Fri Dec 2 10:36:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 9458181 X-Patchwork-Delegate: bhelgaas@google.com 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 309E960515 for ; Fri, 2 Dec 2016 10:37:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EB501FFBD for ; Fri, 2 Dec 2016 10:37:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0385E284E3; Fri, 2 Dec 2016 10:37:29 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B4FEC1FFBD for ; Fri, 2 Dec 2016 10:37:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933942AbcLBKh1 (ORCPT ); Fri, 2 Dec 2016 05:37:27 -0500 Received: from kirsty.vergenet.net ([202.4.237.240]:36275 "EHLO kirsty.vergenet.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933523AbcLBKh0 (ORCPT ); Fri, 2 Dec 2016 05:37:26 -0500 Received: from penelope.kanocho.kobe.vergenet.net (unknown [217.111.208.18]) by kirsty.vergenet.net (Postfix) with ESMTPSA id BA69225B821; Fri, 2 Dec 2016 21:37:13 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1480675034; bh=i8wE3NFpjuwVfAsaEbT36Kdi6Q1Fr4IoGX9jM6l37xU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pbSSzkIZmA9Os427nwJ8t8eQlLuHyTDblKjDE6HvnziRvsQjgdBxb5ZDVcDdpuDLa ye+p1js1JLNoy5sl8ERw4JioukN93oaR8ABRUpQrTLH6rBCYdikprd1m08KNR7Z2Sw MinXDzbja/KsO/uEqSSdgGR1wxggtPve1xH3lEhU= Received: by penelope.kanocho.kobe.vergenet.net (Postfix, from userid 7100) id 34AEB60777; Fri, 2 Dec 2016 11:37:10 +0100 (CET) From: Simon Horman To: Bjorn Helgaas Cc: Phil Edworthy , Magnus Damm , linux-pci@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Rob Herring , devicetree@vger.kernel.org, Simon Horman Subject: [PATCH v2 1/3 pci/next] PCI: rcar-gen2: Use gen2 fallback compatibility last Date: Fri, 2 Dec 2016 11:36:58 +0100 Message-Id: <1480675020-26346-2-git-send-email-horms+renesas@verge.net.au> X-Mailer: git-send-email 2.7.0.rc3.207.g0ac5344 In-Reply-To: <1480675020-26346-1-git-send-email-horms+renesas@verge.net.au> References: <1480675020-26346-1-git-send-email-horms+renesas@verge.net.au> Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Fallback compatibility strings should be used only if more specific ones are matched and the order of compatibility strings in the corresponding struct of_device_id should implement this. This does not have a run-time effect as current all relevant compatibility strings result in the same initialisation. Signed-off-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- v2 * New patch Signed-off-by: Simon Horman --- drivers/pci/host/pci-rcar-gen2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-rcar-gen2.c b/drivers/pci/host/pci-rcar-gen2.c index 1eeefa4df64c..85348590848b 100644 --- a/drivers/pci/host/pci-rcar-gen2.c +++ b/drivers/pci/host/pci-rcar-gen2.c @@ -430,10 +430,10 @@ static int rcar_pci_probe(struct platform_device *pdev) } static struct of_device_id rcar_pci_of_match[] = { - { .compatible = "renesas,pci-rcar-gen2", }, { .compatible = "renesas,pci-r8a7790", }, { .compatible = "renesas,pci-r8a7791", }, { .compatible = "renesas,pci-r8a7794", }, + { .compatible = "renesas,pci-rcar-gen2", }, { }, };