Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752487AbdF2JRl (ORCPT ); Thu, 29 Jun 2017 05:17:41 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:33780 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751595AbdF2JRe (ORCPT ); Thu, 29 Jun 2017 05:17:34 -0400 From: Arvind Yadav To: linux@armlinux.org.uk Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 766 Lines: 24 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, }; -- 1.9.1