Commit 16b3647d333a18141fc9d172e89a142250be0c57

Authored by Dong Aisheng
Committed by Sascha Hauer
1 parent c0d96aed8c

ARM: mx5: add __initconst for fec pdata

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Showing 3 changed files with 3 additions and 3 deletions Side-by-side Diff

arch/arm/mach-mx5/board-mx53_evk.c
... ... @@ -106,7 +106,7 @@
106 106 gpio_set_value(MX53_EVK_FEC_PHY_RST, 1);
107 107 }
108 108  
109   -static struct fec_platform_data mx53_evk_fec_pdata = {
  109 +static const struct fec_platform_data mx53_evk_fec_pdata __initconst = {
110 110 .phy = PHY_INTERFACE_MODE_RMII,
111 111 };
112 112  
arch/arm/mach-mx5/board-mx53_loco.c
... ... @@ -242,7 +242,7 @@
242 242 gpio_set_value(LOCO_FEC_PHY_RST, 1);
243 243 }
244 244  
245   -static struct fec_platform_data mx53_loco_fec_data = {
  245 +static const struct fec_platform_data mx53_loco_fec_data __initconst = {
246 246 .phy = PHY_INTERFACE_MODE_RMII,
247 247 };
248 248  
arch/arm/mach-mx5/board-mx53_smd.c
... ... @@ -104,7 +104,7 @@
104 104 gpio_set_value(SMD_FEC_PHY_RST, 1);
105 105 }
106 106  
107   -static struct fec_platform_data mx53_smd_fec_data = {
  107 +static const struct fec_platform_data mx53_smd_fec_data __initconst = {
108 108 .phy = PHY_INTERFACE_MODE_RMII,
109 109 };
110 110