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>
This commit is contained in:
parent
c0d96aed8c
commit
16b3647d33
3 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ static inline void mx53_evk_fec_reset(void)
|
||||||
gpio_set_value(MX53_EVK_FEC_PHY_RST, 1);
|
gpio_set_value(MX53_EVK_FEC_PHY_RST, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct fec_platform_data mx53_evk_fec_pdata = {
|
static const struct fec_platform_data mx53_evk_fec_pdata __initconst = {
|
||||||
.phy = PHY_INTERFACE_MODE_RMII,
|
.phy = PHY_INTERFACE_MODE_RMII,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -242,7 +242,7 @@ static inline void mx53_loco_fec_reset(void)
|
||||||
gpio_set_value(LOCO_FEC_PHY_RST, 1);
|
gpio_set_value(LOCO_FEC_PHY_RST, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct fec_platform_data mx53_loco_fec_data = {
|
static const struct fec_platform_data mx53_loco_fec_data __initconst = {
|
||||||
.phy = PHY_INTERFACE_MODE_RMII,
|
.phy = PHY_INTERFACE_MODE_RMII,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,7 @@ static inline void mx53_smd_fec_reset(void)
|
||||||
gpio_set_value(SMD_FEC_PHY_RST, 1);
|
gpio_set_value(SMD_FEC_PHY_RST, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct fec_platform_data mx53_smd_fec_data = {
|
static const struct fec_platform_data mx53_smd_fec_data __initconst = {
|
||||||
.phy = PHY_INTERFACE_MODE_RMII,
|
.phy = PHY_INTERFACE_MODE_RMII,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue