From: Scott Wood Date: Tue, 8 May 2007 17:15:34 +0000 (+1000) Subject: [POWERPC] fsl_soc: Make mac_addr const in fs_enet_of_init(). X-Git-Tag: MMI-PSA29.97-13-9~43251^2~30 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b7a6912969af7586ade62667d6d1c7ecc534faa1;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [POWERPC] fsl_soc: Make mac_addr const in fs_enet_of_init(). of_get_mac_address() returns a const pointer, so the result should be stored in a const pointer. Signed-off-by: Scott Wood Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c index 8a123c71449f..cad175724359 100644 --- a/arch/powerpc/sysdev/fsl_soc.c +++ b/arch/powerpc/sysdev/fsl_soc.c @@ -907,7 +907,7 @@ static int __init fs_enet_of_init(void) struct fs_platform_info fs_enet_data; const unsigned int *id; const unsigned int *phy_addr; - void *mac_addr; + const void *mac_addr; const phandle *ph; const char *model;