Patchwork [1/2] ARM: mx28evk: remove flexcan_pdata __initconst attribute

login
register
mail settings
Submitter Dong Aisheng
Date Nov. 11, 2011, 3:12 p.m.
Message ID <1321024360-5249-1-git-send-email-b29396@freescale.com>
Download mbox | patch
Permalink /patch/125184/
State New
Headers show

Comments

Uwe Kleine-König - Nov. 11, 2011, 3:06 p.m.
On Fri, Nov 11, 2011 at 11:12:39PM +0800, Dong Aisheng wrote:
> The flexcan driver still uses it after init.
As "it" is a copy of flexcan_pdata it's completely OK for the driver to
use it.

What is the exact problem you want to address?

Uwe
Dong Aisheng - Nov. 11, 2011, 3:12 p.m.
The flexcan driver still uses it after init.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Shawn Guo <shawn.guo@freescale.com>
Cc: Wolfram Sang <w.sang@pengutronix.de>
Cc: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
 arch/arm/mach-mxs/mach-mx28evk.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/arm/mach-mxs/mach-mx28evk.c b/arch/arm/mach-mxs/mach-mx28evk.c
index 4a3cca3..226ba64 100644
--- a/arch/arm/mach-mxs/mach-mx28evk.c
+++ b/arch/arm/mach-mxs/mach-mx28evk.c
@@ -327,7 +327,7 @@  static void mx28evk_flexcan1_switch(int enable)
 }
 
 static const struct flexcan_platform_data
-		mx28evk_flexcan_pdata[] __initconst = {
+		mx28evk_flexcan_pdata[] = {
 	{
 		.transceiver_switch = mx28evk_flexcan0_switch,
 	}, {