From patchwork Fri Jun 23 09:29:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9806069 X-Patchwork-Delegate: geert@linux-m68k.org 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 2E7146086C for ; Fri, 23 Jun 2017 09:30:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1BFB728760 for ; Fri, 23 Jun 2017 09:30:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19F8A28810; Fri, 23 Jun 2017 09:30:59 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 CDE9128760 for ; Fri, 23 Jun 2017 09:30:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754233AbdFWJag (ORCPT ); Fri, 23 Jun 2017 05:30:36 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33891 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754218AbdFWJaf (ORCPT ); Fri, 23 Jun 2017 05:30:35 -0400 Received: by mail-pf0-f194.google.com with SMTP id d5so6594297pfe.1; Fri, 23 Jun 2017 02:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=dVtfLPiNB8MaqM5UlYaklHsy6OFM8bPr45l4qqARd2M=; b=HENcPd6gc6on2COuD8uvkwn2Kj92wY27u5ACbarqSBElazAJYoRiz9z2xgK7qIMRxe YIJQPL3kJ1jigSF59LYgrfuL8PK7i2mmUlWESjADRAoOnQMREtpgpy4WLNvrnN3e9uSI cfi1eNw3bIcEhfk9yRod9qOirjhZhsSyaLKyOlz0OiPzkQ2i+RouSQMJ9fNeZv864yyY l+c2HGx2xlKIn5fwgWjVer3yQZKX99UOtcRI8O9+fWLO0B2xYDkk4b8QV+MZERg5Ks+8 RPMCAJa+zUTq9dHzW5VETEsw2Z+jW/5JnYzvZkj/DMWl5F1QibOEOWk7W5GECJ7/Caca wy+w== 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; bh=dVtfLPiNB8MaqM5UlYaklHsy6OFM8bPr45l4qqARd2M=; b=WPN7h/vmMeW+io+iC5H94TL5/XbIQZVUf1vmBQnaj098/LdiEJi++O9rPh2eiNT8S6 iC/iQZMq8kQC0XXYODi/v/OIoZrO8Ari3rgUgCobBDI0AE/x+0Tm3k33CoD3nLfr+XYu vb2TjM9ZUyTYOCKv+OG6OK5FVdVnmnjVbGRnYdp7qx/kkjNBlNlFiAu3tQMKHY9q94+2 BwTlw5f7CDoyri2JZSJBZqUXZq5oKZukdqQO1/9TTvxhvYZFWl/W5L+L6Px3PMH8wQ6o TjykfFKVWh8VUn3hgShuMMCh07X9WcLhcEZ4QkRU6VcuxXWK32IMriX2HM5bmCBdg84w GHZA== X-Gm-Message-State: AKS2vOx67vnQ9Eouwie6FKMdvW5ZPNQTxXQOITu4LSESfkJgyYBH3D6S 8IKeCAfg2g3f1g== X-Received: by 10.99.9.131 with SMTP id 125mr7096454pgj.178.1498210234732; Fri, 23 Jun 2017 02:30:34 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id g5sm8655489pgc.42.2017.06.23.02.30.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 23 Jun 2017 02:30:34 -0700 (PDT) From: Arvind Yadav To: horms@verge.net.au, bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH] PCI: rcar-gen2: make of_device_ids const Date: Fri, 23 Jun 2017 14:59:52 +0530 Message-Id: <99e5ddc3b23962b22740dc93113d178f6f98df2f.1498210098.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP of_device_ids are not supposed to change at runtime. All functions working with of_device_ids provided by work with const of_device_ids. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Acked-by: Simon Horman Acked-by: Geert Uytterhoeven --- 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 8534859..6f87968 100644 --- a/drivers/pci/host/pci-rcar-gen2.c +++ b/drivers/pci/host/pci-rcar-gen2.c @@ -429,7 +429,7 @@ static int rcar_pci_probe(struct platform_device *pdev) return 0; } -static struct of_device_id rcar_pci_of_match[] = { +static const struct of_device_id rcar_pci_of_match[] = { { .compatible = "renesas,pci-r8a7790", }, { .compatible = "renesas,pci-r8a7791", }, { .compatible = "renesas,pci-r8a7794", },