]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00161617-1 [MX6] : Fix the build warning.
authorFugang Duan <B38611@freescale.com>
Fri, 11 Nov 2011 03:36:21 +0000 (11:36 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:00 +0000 (14:10 +0200)
- Fix the building warning:
  common.h:75: warning: 'struct fec_platform_data' declared
  inside parameter list

Signed-off-by: Fugang Duan <B38611@freescale.com>
arch/arm/mach-mx6/mx6_fec.c
arch/arm/plat-mxc/include/mach/common.h

index 9d3c82442aced251b8fe710342543327fc2452ff..32e8583553908d8e6c88f4d2c62619ffad7649a8 100644 (file)
@@ -43,7 +43,7 @@ static int fec_get_mac_addr(unsigned char *mac)
        return 0;
 }
 
-void imx6_init_fec(struct fec_platform_data fec_data)
+void __init imx6_init_fec(struct fec_platform_data fec_data)
 {
        fec_get_mac_addr(fec_data.mac);
        if (!is_valid_ether_addr(fec_data.mac))
index 1359c44cc6acf2b33b3e975695f545ae9c1f448f..9a340ccf8dac25175192b76e4ea5b7a3f8e203bf 100755 (executable)
@@ -19,6 +19,7 @@
 #ifndef __ASM_ARCH_MXC_COMMON_H__
 #define __ASM_ARCH_MXC_COMMON_H__
 
+struct fec_platform_data;
 struct platform_device;
 struct clk;