From patchwork Thu Jun 29 09:16:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9816271 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 324EE6035F for ; Thu, 29 Jun 2017 09:18:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7D6C28694 for ; Thu, 29 Jun 2017 09:18:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DC0AC286AA; Thu, 29 Jun 2017 09:18:02 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7CFF6286B3 for ; Thu, 29 Jun 2017 09:18:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=ZAhNjiieWoh2mBJo+OxBuL0KRK/qAv6THJlK6WUX89I=; b=ktV 2ewR67XKromuSu2nQcht8Yzjjg96Z0JK1hxV8Sf8LnjjyKKD8w2D8YgarMjWsm6dHB0sKTbZ+2fdl fMDtvLPEwxRZnr13LrPBItfJuvxyMzrl7EUHdEeLlLjQW33oifS/n1VW1/sTAxhmaEPLcFPLjNLxQ 1TLxO2EjZfk6YVEwLCnfIS9T6xFXnh56CVeMrThoOGjMSjEgF4b5dbosuji2+YNrP1IgNQP9eQojH 40kKlKncz9/J4TXTgTLjF3NuzcJZnltyGD1zpn48R4IvvGhNGSkhz4Tzk8ZwezYCetLO+/TiCBWyy kEU534hKl1+buuSRjWfPPz3TX1kDzBA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dQVaI-0001Yk-EY; Thu, 29 Jun 2017 09:17:58 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dQVaF-0001QX-0h for linux-arm-kernel@lists.infradead.org; Thu, 29 Jun 2017 09:17:56 +0000 Received: by mail-pf0-x242.google.com with SMTP id s66so12347422pfs.2 for ; Thu, 29 Jun 2017 02:17:34 -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=euSx3sWkP4cb8UzRagz2xKOx5G3YGJbFOshhjkFq0Dw=; b=h+DhB2AVIUN1+YmdQuDnpERb3ylq+vx7+bJU9jrLLJM6JvxbVwlZ+QwGwQJT15We0d vXGd/Go72d1cp4h89u1dlCQuqNbiJBkMGonOUzbxXm3z91qaeC6WvWJqAFlFUxq0Xg1P QSMiZV43qXdjfJvyvzo8tB2lQE6uQfGteMnX3zxBGA11htHm+snLMF1uNA9qIkrzno2n iK/mHQeNfqQ2EU4ZlUcj8qH/1boR/6NW2p8MvkIzKIuh1bbew9gHJ87ORQbKbPaq5Pyy 1yOiWKDRDhPsYvcLZJxhdjVFkkcrzSc5RKNzTRWJLbObg3FWo1IDZq5hDEiy1+ld2xWv uhmA== 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=euSx3sWkP4cb8UzRagz2xKOx5G3YGJbFOshhjkFq0Dw=; b=WBTzFpA98wuZyv5uLo8mK8vXnWNtOzO5q4baVE8YEN5cBCPNJb9mZbyiy5HwMhfW3Y ylu+wAbSHjHSTQTTJbOxVE5ZP/hp09JcTAHST26yXv0Qny2QVkPN0kzD5HKS2VQNaBoq 831NBEUFZcP80nIthecSwEXI/O/2FRa6gCyDG7dRXt4Xa0tucbPkNL/JrY2oHfNB2BiS EgkDNPNpNiMvf3mpviBOtNZLRT8vVLzlSwxkro+6GsPIjRJh1BfDuMlewTfdburMQ0Md W94DrhtjlK1L4VBY4332wuV0bOlk0T1xNCAvdKUM7p9V0Z4b821nyCKLR+FFi4hdeix3 8nDA== X-Gm-Message-State: AKS2vOzb2oifpoSaFHbxVcVsgGisG81YoYhEiOOsoWTm7Ghgo8l4JLpJ yun+tlqmSQdr+w== X-Received: by 10.99.121.133 with SMTP id u127mr14426422pgc.31.1498727853570; Thu, 29 Jun 2017 02:17:33 -0700 (PDT) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id m79sm10342953pfk.117.2017.06.29.02.17.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jun 2017 02:17:31 -0700 (PDT) From: Arvind Yadav To: linux@armlinux.org.uk Subject: [PATCH] ARM: sa1111 : constify dev_pm_ops structures. Date: Thu, 29 Jun 2017 14:46:39 +0530 Message-Id: <5795d1a3b6f84f073a0a731ec5b75a93c56a3918.1498724604.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170629_021755_119617_1E0C39E5 X-CRM114-Status: GOOD ( 10.45 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP dev_pm_ops are not supposed to change at runtime. All functions working with dev_pm_ops provided by work with const dev_pm_ops. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- arch/arm/common/sa1111.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index 4ecd512..09193b2 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c @@ -1112,7 +1112,7 @@ static int sa1111_remove(struct platform_device *pdev) return 0; } -static struct dev_pm_ops sa1111_pm_ops = { +static const struct dev_pm_ops sa1111_pm_ops = { .suspend_noirq = sa1111_suspend_noirq, .resume_noirq = sa1111_resume_noirq, };