From patchwork Tue Jun 3 12:01:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 4287741 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6F89A9F1D6 for ; Tue, 3 Jun 2014 12:01:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B070E20259 for ; Tue, 3 Jun 2014 12:01:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 123F7202A7 for ; Tue, 3 Jun 2014 12:01:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754998AbaFCMBq (ORCPT ); Tue, 3 Jun 2014 08:01:46 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:58542 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754755AbaFCMBn (ORCPT ); Tue, 3 Jun 2014 08:01:43 -0400 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N6L00F3NDETH750@mailout1.samsung.com> for linux-spi@vger.kernel.org; Tue, 03 Jun 2014 21:01:41 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.50]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id E7.11.14704.529BD835; Tue, 03 Jun 2014 21:01:41 +0900 (KST) X-AuditID: cbfee68f-b7fef6d000003970-0c-538db92589c2 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 99.15.08203.529BD835; Tue, 03 Jun 2014 21:01:41 +0900 (KST) Received: from DOJG1HAN03 ([12.36.165.116]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N6L003FXDES7990@mmp1.samsung.com>; Tue, 03 Jun 2014 21:01:40 +0900 (KST) From: Jingoo Han To: 'Mark Brown' Cc: linux-spi@vger.kernel.org, 'Jingoo Han' , 'Harini Katakam' Subject: [PATCH 1/3] spi: cadence: Make of_device_id array const Date: Tue, 03 Jun 2014 21:01:40 +0900 Message-id: <001e01cf7f23$946c4460$bd44cd20$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac9/I5RWxc5MmEulTy+qZhxFs/HFQA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMIsWRmVeSWpSXmKPExsVy+t8zI13Vnb3BBgc+SllMffiEzWLammMs FpcXXmK1aPx4k92BxWPTqk42j74tqxg9Pm+S89j7+TdLAEsUl01Kak5mWWqRvl0CV8arLZeY ChayVTxfdIO1gXE2axcjJ4eEgInEwnU7mCFsMYkL99azdTFycQgJLGOUuLxuJwtM0fy5j5kg EosYJX5/f8YIkhAS+M0oMWUKWBGbgJrEly+H2bsYOThEBFQl/r9yBwkzC2RJ/PtxA2yBsICD xNLznWwgNgtQyfqFN5hAbF4BW4mDv+5A2YISPybfY4Ho1ZJYv/M4E4QtL7F5zVtmkPESAuoS j/7qQmzSkzhx2BGiQkRi34t3jCBXSghsYpd4++0GK8QqAYlvkw+xQLTKSmw6APWupMTBFTdY JjCKzUKyeBaSxbOQLJ6FZMUCRpZVjKKpBckFxUnpRcZ6xYm5xaV56XrJ+bmbGCER1r+D8e4B 60OMyUDrJzJLiSbnAyM0ryTe0NjMyMLUxNTYyNzSjDRhJXHe+w+TgoQE0hNLUrNTUwtSi+KL SnNSiw8xM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75V4Z/T72QYml OCPRUIu5qDgRAOraYVQjAwAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Make of_device_id array const, because all OF functions handle it as const. Signed-off-by: Jingoo Han Acked-by: Harini Katakam --- drivers/spi/spi-cadence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c index bb75897..98b763b 100644 --- a/drivers/spi/spi-cadence.c +++ b/drivers/spi/spi-cadence.c @@ -647,7 +647,7 @@ static int __maybe_unused cdns_spi_resume(struct device *dev) static SIMPLE_DEV_PM_OPS(cdns_spi_dev_pm_ops, cdns_spi_suspend, cdns_spi_resume); -static struct of_device_id cdns_spi_of_match[] = { +static const struct of_device_id cdns_spi_of_match[] = { { .compatible = "xlnx,zynq-spi-r1p6" }, { .compatible = "cdns,spi-r1p6" }, { /* end of table */ }