Patchwork [1/2] ARM: mxs/tx28: add __initconst for fec pdata

login
register
mail settings
Submitter Dong Aisheng
Date Nov. 11, 2011, 4:09 p.m.
Message ID <1321027746-5906-1-git-send-email-b29396@freescale.com>
Download mbox | patch
Permalink /patch/125193/
State New
Headers show

Comments

Dong Aisheng - Nov. 11, 2011, 4:09 p.m.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
---
 arch/arm/mach-mxs/module-tx28.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
Lothar Waßmann - Nov. 14, 2011, 5:28 a.m.
Hi,

Dong Aisheng writes:
> Signed-off-by: Dong Aisheng <b29396@freescale.com>
> ---
>  arch/arm/mach-mxs/module-tx28.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-mxs/module-tx28.c b/arch/arm/mach-mxs/module-tx28.c
> index 0fcff47..9a7b08b 100644
> --- a/arch/arm/mach-mxs/module-tx28.c
> +++ b/arch/arm/mach-mxs/module-tx28.c
> @@ -66,11 +66,11 @@ static const iomux_cfg_t tx28_fec1_pads[] __initconst = {
>  	MX28_PAD_ENET0_CRS__ENET1_RX_EN,
>  };
>  
> -static struct fec_platform_data tx28_fec0_data = {
> +static const struct fec_platform_data tx28_fec0_data __initconst = {
>  	.phy = PHY_INTERFACE_MODE_RMII,
>  };
>  
> -static struct fec_platform_data tx28_fec1_data = {
> +static const struct fec_platform_data tx28_fec1_data __initconst = {
>  	.phy = PHY_INTERFACE_MODE_RMII,
>  };
>  
> -- 
> 1.7.0.4
> 
Acked-by: Lothar Waßmann <LW@KARO-electronics.de>


Lothar Waßmann
Shawn Guo - Nov. 22, 2011, 5:48 a.m.
On Sat, Nov 12, 2011 at 12:09:05AM +0800, Dong Aisheng wrote:
> Signed-off-by: Dong Aisheng <b29396@freescale.com>
> ---

Applied, thanks.

Regards,
Shawn

>  arch/arm/mach-mxs/module-tx28.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm/mach-mxs/module-tx28.c b/arch/arm/mach-mxs/module-tx28.c
> index 0fcff47..9a7b08b 100644
> --- a/arch/arm/mach-mxs/module-tx28.c
> +++ b/arch/arm/mach-mxs/module-tx28.c
> @@ -66,11 +66,11 @@ static const iomux_cfg_t tx28_fec1_pads[] __initconst = {
>  	MX28_PAD_ENET0_CRS__ENET1_RX_EN,
>  };
>  
> -static struct fec_platform_data tx28_fec0_data = {
> +static const struct fec_platform_data tx28_fec0_data __initconst = {
>  	.phy = PHY_INTERFACE_MODE_RMII,
>  };
>  
> -static struct fec_platform_data tx28_fec1_data = {
> +static const struct fec_platform_data tx28_fec1_data __initconst = {
>  	.phy = PHY_INTERFACE_MODE_RMII,
>  };
>  
> -- 
> 1.7.0.4
>

Patch

diff --git a/arch/arm/mach-mxs/module-tx28.c b/arch/arm/mach-mxs/module-tx28.c
index 0fcff47..9a7b08b 100644
--- a/arch/arm/mach-mxs/module-tx28.c
+++ b/arch/arm/mach-mxs/module-tx28.c
@@ -66,11 +66,11 @@  static const iomux_cfg_t tx28_fec1_pads[] __initconst = {
 	MX28_PAD_ENET0_CRS__ENET1_RX_EN,
 };
 
-static struct fec_platform_data tx28_fec0_data = {
+static const struct fec_platform_data tx28_fec0_data __initconst = {
 	.phy = PHY_INTERFACE_MODE_RMII,
 };
 
-static struct fec_platform_data tx28_fec1_data = {
+static const struct fec_platform_data tx28_fec1_data __initconst = {
 	.phy = PHY_INTERFACE_MODE_RMII,
 };