From patchwork Mon Apr 27 12:49:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6280241 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 07A019F389 for ; Mon, 27 Apr 2015 12:52:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3725E20431 for ; Mon, 27 Apr 2015 12:52:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4779B203B7 for ; Mon, 27 Apr 2015 12:52:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932852AbbD0MvR (ORCPT ); Mon, 27 Apr 2015 08:51:17 -0400 Received: from mail-pa0-f46.google.com ([209.85.220.46]:34907 "EHLO mail-pa0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932661AbbD0MvO (ORCPT ); Mon, 27 Apr 2015 08:51:14 -0400 Received: by pabtp1 with SMTP id tp1so128419727pab.2; Mon, 27 Apr 2015 05:51:14 -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=z9wQ1NdmVRN/Pb1JOVbcMVBuNRcRxAYo6dR1lMD5YGI=; b=j0tkV2bvEKDGgOd4lGANBPK09fip4Co25zMHIhgWAyCGhJRWjkxu/5WfODTv4XCY9Z 8bwYaTc1RzXuo8/sbdUBifWvVyowa/LO/fGVY+hYSl5ADRLRCHtRbSCChzIEQcCnlNJn VlO5UjU00o8GK/xdDuNrnPa7niu21ryABNcia9DsomJz8gBiMz2tSLsB15/CCGyyfFgb 4rVnpKFWLBCDV3qftf71/GKOgyVG9hc5o9RD2Y0BkD0vB18cv/BAkQ/k4sFZYT9ik8HN prcfHm/OGpnyC1+p/lrUqoTEvHsLA2sQCN8eenxeeJaxYbv7u6W5YSvJL7CnKRUjNW90 QTKA== X-Received: by 10.66.188.107 with SMTP id fz11mr22073332pac.85.1430139074243; Mon, 27 Apr 2015 05:51:14 -0700 (PDT) Received: from localhost.localdomain ([125.130.175.98]) by mx.google.com with ESMTPSA id su5sm19311309pbc.38.2015.04.27.05.51.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Apr 2015 05:51:13 -0700 (PDT) From: Krzysztof Kozlowski To: Tony Lindgren , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH] ARM: OMAP: Constify irq_domain_ops Date: Mon, 27 Apr 2015 21:49:44 +0900 Message-Id: <1430138984-3523-1-git-send-email-k.kozlowski.k@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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-omap2/omap-wakeupgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/omap-wakeupgen.c b/arch/arm/mach-omap2/omap-wakeupgen.c index 3b56722dfd8a..8e52621b5a6b 100644 --- a/arch/arm/mach-omap2/omap-wakeupgen.c +++ b/arch/arm/mach-omap2/omap-wakeupgen.c @@ -444,7 +444,7 @@ static int wakeupgen_domain_alloc(struct irq_domain *domain, return irq_domain_alloc_irqs_parent(domain, virq, nr_irqs, &parent_args); } -static struct irq_domain_ops wakeupgen_domain_ops = { +static const struct irq_domain_ops wakeupgen_domain_ops = { .xlate = wakeupgen_domain_xlate, .alloc = wakeupgen_domain_alloc, .free = irq_domain_free_irqs_common,