From mboxrd@z Thu Jan 1 00:00:00 1970 From: Felipe Balbi Subject: [RFC/PATCH 3/7] arm: omap: hwmod: drop 'const' qualifier from omap_hwmod_class name Date: Tue, 9 Dec 2014 16:27:48 -0600 Message-ID: <1418164072-19087-4-git-send-email-balbi@ti.com> References: <1418164072-19087-1-git-send-email-balbi@ti.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: In-Reply-To: <1418164072-19087-1-git-send-email-balbi@ti.com> Sender: linux-omap-owner@vger.kernel.org To: Tony Lindgren Cc: Linux OMAP Mailing List , Linux ARM Kernel Mailing List , Paul Walmsley , Nishanth Menon , devicetree@vger.kernel.org, Felipe Balbi List-Id: devicetree@vger.kernel.org We will be allocating struct omap_hwmod_class for any DT which passes sysc data. Because of that, class->name cannot be const. Signed-off-by: Felipe Balbi --- arch/arm/mach-omap2/omap_hwmod.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-omap2/omap_hwmod.h b/arch/arm/mach-omap2/omap_hwmod.h index fcf55f5..0ee0116 100644 --- a/arch/arm/mach-omap2/omap_hwmod.h +++ b/arch/arm/mach-omap2/omap_hwmod.h @@ -588,7 +588,7 @@ struct omap_hwmod_omap4_prcm { * unusual reset sequences - usually processor IP blocks like the IVA. */ struct omap_hwmod_class { - const char *name; + char *name; struct omap_hwmod_class_sysconfig *sysc; u32 rev; int (*pre_shutdown)(struct omap_hwmod *oh); -- 2.2.0