From patchwork Mon Apr 27 12:51:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6280521 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4BA53BF4A6 for ; Mon, 27 Apr 2015 12:56:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7CBBC203DB for ; Mon, 27 Apr 2015 12:56:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A7512203B7 for ; Mon, 27 Apr 2015 12:56:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YmiY2-0000NI-RW; Mon, 27 Apr 2015 12:54:06 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YmiXi-0008U5-8f for linux-arm-kernel@lists.infradead.org; Mon, 27 Apr 2015 12:53:46 +0000 Received: by pabsx10 with SMTP id sx10so128528173pab.3 for ; Mon, 27 Apr 2015 05:53:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=bwVpU6+RPvp/bbH0hylNgbDSdw1uojNdzEaGnXGqaMk=; b=ZpxILZcvlnr7uP6QcAVaUM7A9H6HMI4oWsajoYi/O+iwBKRGTFOlfHcJaPVBfufNsM H7lwhAE1+rFeY0RmXo0/ESSKGrDwc0lQQEp8JqbPY648BekXjxRvCMKnXIPj2W9wdvvB vw0XTmGoMp+FsAKbFsa+nYFBCwxxsfUBkUmUUCNkLBuELr4xCeHbJMQb3ofghWCkoYR6 809tID/KhKu6Ma3IvVdbwwGI8qtVBsKMnc5unCvJxrfmA1T9L0XEguIoJryEOU5gnE2N i6t9XA5j4Cxsh0qxyB6HYtAVqmSFoB7DGVjdlcHIuSPE78VLcAFK6YgR6425hcqaLwFW EbLg== X-Received: by 10.70.38.138 with SMTP id g10mr21835437pdk.98.1430139204762; Mon, 27 Apr 2015 05:53:24 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by mx.google.com with ESMTPSA id sf6sm19303273pbb.82.2015.04.27.05.53.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Apr 2015 05:53:24 -0700 (PDT) From: Krzysztof Kozlowski To: Shawn Guo , Sascha Hauer , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: imx: Constify irq_domain_ops Date: Mon, 27 Apr 2015 21:51:39 +0900 Message-Id: <1430139099-3673-1-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150427_055346_410055_35CD0F31 X-CRM114-Status: GOOD ( 10.65 ) X-Spam-Score: -0.8 (/) Cc: Krzysztof Kozlowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_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 The irq_domain_ops are not modified by the driver and the irqdomain core code accepts pointer to a const data. Signed-off-by: Krzysztof Kozlowski --- arch/arm/mach-imx/gpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/gpc.c b/arch/arm/mach-imx/gpc.c index 4d60005e9277..9051dc02dc79 100644 --- a/arch/arm/mach-imx/gpc.c +++ b/arch/arm/mach-imx/gpc.c @@ -227,7 +227,7 @@ static int imx_gpc_domain_alloc(struct irq_domain *domain, return irq_domain_alloc_irqs_parent(domain, irq, nr_irqs, &parent_args); } -static struct irq_domain_ops imx_gpc_domain_ops = { +static const struct irq_domain_ops imx_gpc_domain_ops = { .xlate = imx_gpc_domain_xlate, .alloc = imx_gpc_domain_alloc, .free = irq_domain_free_irqs_common,