diff options
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/mach-bf518/boards/ezbrd.c | 3 | ||||
-rw-r--r-- | arch/blackfin/mach-bf518/boards/tcm-bf518.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ad7160eval.c | 3 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/cm_bf527.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezbrd.c | 3 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/ezkit.c | 3 | ||||
-rw-r--r-- | arch/blackfin/mach-bf527/boards/tll6527m.c | 3 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/cm_bf537e.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/cm_bf537u.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/dnp5370.c | 3 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/pnav10.c | 5 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/stamp.c | 3 | ||||
-rw-r--r-- | arch/blackfin/mach-bf537/boards/tcm_bf537.c | 5 |
13 files changed, 26 insertions, 25 deletions
diff --git a/arch/blackfin/mach-bf518/boards/ezbrd.c b/arch/blackfin/mach-bf518/boards/ezbrd.c index a2d96d31bbf1..a17395727efa 100644 --- a/arch/blackfin/mach-bf518/boards/ezbrd.c +++ b/arch/blackfin/mach-bf518/boards/ezbrd.c | |||
@@ -821,7 +821,7 @@ void native_machine_restart(char *cmd) | |||
821 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); | 821 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); |
822 | } | 822 | } |
823 | 823 | ||
824 | void bfin_get_ether_addr(char *addr) | 824 | int bfin_get_ether_addr(char *addr) |
825 | { | 825 | { |
826 | /* the MAC is stored in OTP memory page 0xDF */ | 826 | /* the MAC is stored in OTP memory page 0xDF */ |
827 | u32 ret; | 827 | u32 ret; |
@@ -834,5 +834,6 @@ void bfin_get_ether_addr(char *addr) | |||
834 | for (ret = 0; ret < 6; ++ret) | 834 | for (ret = 0; ret < 6; ++ret) |
835 | addr[ret] = otp_mac_p[5 - ret]; | 835 | addr[ret] = otp_mac_p[5 - ret]; |
836 | } | 836 | } |
837 | return 0; | ||
837 | } | 838 | } |
838 | EXPORT_SYMBOL(bfin_get_ether_addr); | 839 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf518/boards/tcm-bf518.c b/arch/blackfin/mach-bf518/boards/tcm-bf518.c index f271310f739d..6eebee4e4217 100644 --- a/arch/blackfin/mach-bf518/boards/tcm-bf518.c +++ b/arch/blackfin/mach-bf518/boards/tcm-bf518.c | |||
@@ -730,9 +730,8 @@ void native_machine_restart(char *cmd) | |||
730 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); | 730 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); |
731 | } | 731 | } |
732 | 732 | ||
733 | void bfin_get_ether_addr(char *addr) | 733 | int bfin_get_ether_addr(char *addr) |
734 | { | 734 | { |
735 | random_ether_addr(addr); | 735 | return 1; |
736 | printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__); | ||
737 | } | 736 | } |
738 | EXPORT_SYMBOL(bfin_get_ether_addr); | 737 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf527/boards/ad7160eval.c b/arch/blackfin/mach-bf527/boards/ad7160eval.c index c8d5d2b7c732..fad7fea1b0bf 100644 --- a/arch/blackfin/mach-bf527/boards/ad7160eval.c +++ b/arch/blackfin/mach-bf527/boards/ad7160eval.c | |||
@@ -846,7 +846,7 @@ void native_machine_restart(char *cmd) | |||
846 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); | 846 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); |
847 | } | 847 | } |
848 | 848 | ||
849 | void bfin_get_ether_addr(char *addr) | 849 | int bfin_get_ether_addr(char *addr) |
850 | { | 850 | { |
851 | /* the MAC is stored in OTP memory page 0xDF */ | 851 | /* the MAC is stored in OTP memory page 0xDF */ |
852 | u32 ret; | 852 | u32 ret; |
@@ -859,5 +859,6 @@ void bfin_get_ether_addr(char *addr) | |||
859 | for (ret = 0; ret < 6; ++ret) | 859 | for (ret = 0; ret < 6; ++ret) |
860 | addr[ret] = otp_mac_p[5 - ret]; | 860 | addr[ret] = otp_mac_p[5 - ret]; |
861 | } | 861 | } |
862 | return 0; | ||
862 | } | 863 | } |
863 | EXPORT_SYMBOL(bfin_get_ether_addr); | 864 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf527/boards/cm_bf527.c b/arch/blackfin/mach-bf527/boards/cm_bf527.c index 7330607856e9..65b7fbd30e16 100644 --- a/arch/blackfin/mach-bf527/boards/cm_bf527.c +++ b/arch/blackfin/mach-bf527/boards/cm_bf527.c | |||
@@ -983,9 +983,8 @@ void native_machine_restart(char *cmd) | |||
983 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); | 983 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); |
984 | } | 984 | } |
985 | 985 | ||
986 | void bfin_get_ether_addr(char *addr) | 986 | int bfin_get_ether_addr(char *addr) |
987 | { | 987 | { |
988 | random_ether_addr(addr); | 988 | return 1; |
989 | printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__); | ||
990 | } | 989 | } |
991 | EXPORT_SYMBOL(bfin_get_ether_addr); | 990 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf527/boards/ezbrd.c b/arch/blackfin/mach-bf527/boards/ezbrd.c index db3ecfce8306..17c6a24cc076 100644 --- a/arch/blackfin/mach-bf527/boards/ezbrd.c +++ b/arch/blackfin/mach-bf527/boards/ezbrd.c | |||
@@ -870,7 +870,7 @@ void native_machine_restart(char *cmd) | |||
870 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); | 870 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); |
871 | } | 871 | } |
872 | 872 | ||
873 | void bfin_get_ether_addr(char *addr) | 873 | int bfin_get_ether_addr(char *addr) |
874 | { | 874 | { |
875 | /* the MAC is stored in OTP memory page 0xDF */ | 875 | /* the MAC is stored in OTP memory page 0xDF */ |
876 | u32 ret; | 876 | u32 ret; |
@@ -883,5 +883,6 @@ void bfin_get_ether_addr(char *addr) | |||
883 | for (ret = 0; ret < 6; ++ret) | 883 | for (ret = 0; ret < 6; ++ret) |
884 | addr[ret] = otp_mac_p[5 - ret]; | 884 | addr[ret] = otp_mac_p[5 - ret]; |
885 | } | 885 | } |
886 | return 0; | ||
886 | } | 887 | } |
887 | EXPORT_SYMBOL(bfin_get_ether_addr); | 888 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf527/boards/ezkit.c b/arch/blackfin/mach-bf527/boards/ezkit.c index dfdd8e6bac72..2f9a2bd83ce4 100644 --- a/arch/blackfin/mach-bf527/boards/ezkit.c +++ b/arch/blackfin/mach-bf527/boards/ezkit.c | |||
@@ -1311,7 +1311,7 @@ void native_machine_restart(char *cmd) | |||
1311 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); | 1311 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); |
1312 | } | 1312 | } |
1313 | 1313 | ||
1314 | void bfin_get_ether_addr(char *addr) | 1314 | int bfin_get_ether_addr(char *addr) |
1315 | { | 1315 | { |
1316 | /* the MAC is stored in OTP memory page 0xDF */ | 1316 | /* the MAC is stored in OTP memory page 0xDF */ |
1317 | u32 ret; | 1317 | u32 ret; |
@@ -1324,5 +1324,6 @@ void bfin_get_ether_addr(char *addr) | |||
1324 | for (ret = 0; ret < 6; ++ret) | 1324 | for (ret = 0; ret < 6; ++ret) |
1325 | addr[ret] = otp_mac_p[5 - ret]; | 1325 | addr[ret] = otp_mac_p[5 - ret]; |
1326 | } | 1326 | } |
1327 | return 0; | ||
1327 | } | 1328 | } |
1328 | EXPORT_SYMBOL(bfin_get_ether_addr); | 1329 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf527/boards/tll6527m.c b/arch/blackfin/mach-bf527/boards/tll6527m.c index 360e97fc5293..d192c0ac941c 100644 --- a/arch/blackfin/mach-bf527/boards/tll6527m.c +++ b/arch/blackfin/mach-bf527/boards/tll6527m.c | |||
@@ -931,7 +931,7 @@ void native_machine_restart(char *cmd) | |||
931 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); | 931 | bfin_reset_boot_spi_cs(P_DEFAULT_BOOT_SPI_CS); |
932 | } | 932 | } |
933 | 933 | ||
934 | void bfin_get_ether_addr(char *addr) | 934 | int bfin_get_ether_addr(char *addr) |
935 | { | 935 | { |
936 | /* the MAC is stored in OTP memory page 0xDF */ | 936 | /* the MAC is stored in OTP memory page 0xDF */ |
937 | u32 ret; | 937 | u32 ret; |
@@ -945,5 +945,6 @@ void bfin_get_ether_addr(char *addr) | |||
945 | for (ret = 0; ret < 6; ++ret) | 945 | for (ret = 0; ret < 6; ++ret) |
946 | addr[ret] = otp_mac_p[5 - ret]; | 946 | addr[ret] = otp_mac_p[5 - ret]; |
947 | } | 947 | } |
948 | return 0; | ||
948 | } | 949 | } |
949 | EXPORT_SYMBOL(bfin_get_ether_addr); | 950 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537e.c b/arch/blackfin/mach-bf537/boards/cm_bf537e.c index 0d4a2f61a973..27fd2c32ae9a 100644 --- a/arch/blackfin/mach-bf537/boards/cm_bf537e.c +++ b/arch/blackfin/mach-bf537/boards/cm_bf537e.c | |||
@@ -813,9 +813,8 @@ void __init native_machine_early_platform_add_devices(void) | |||
813 | ARRAY_SIZE(cm_bf537e_early_devices)); | 813 | ARRAY_SIZE(cm_bf537e_early_devices)); |
814 | } | 814 | } |
815 | 815 | ||
816 | void bfin_get_ether_addr(char *addr) | 816 | int bfin_get_ether_addr(char *addr) |
817 | { | 817 | { |
818 | random_ether_addr(addr); | 818 | return 1; |
819 | printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__); | ||
820 | } | 819 | } |
821 | EXPORT_SYMBOL(bfin_get_ether_addr); | 820 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf537/boards/cm_bf537u.c b/arch/blackfin/mach-bf537/boards/cm_bf537u.c index f5536982706c..3f3abad86ec3 100644 --- a/arch/blackfin/mach-bf537/boards/cm_bf537u.c +++ b/arch/blackfin/mach-bf537/boards/cm_bf537u.c | |||
@@ -790,9 +790,8 @@ void __init native_machine_early_platform_add_devices(void) | |||
790 | ARRAY_SIZE(cm_bf537u_early_devices)); | 790 | ARRAY_SIZE(cm_bf537u_early_devices)); |
791 | } | 791 | } |
792 | 792 | ||
793 | void bfin_get_ether_addr(char *addr) | 793 | int bfin_get_ether_addr(char *addr) |
794 | { | 794 | { |
795 | random_ether_addr(addr); | 795 | return 1; |
796 | printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__); | ||
797 | } | 796 | } |
798 | EXPORT_SYMBOL(bfin_get_ether_addr); | 797 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf537/boards/dnp5370.c b/arch/blackfin/mach-bf537/boards/dnp5370.c index 11dadeb33d79..6f77bf708ec0 100644 --- a/arch/blackfin/mach-bf537/boards/dnp5370.c +++ b/arch/blackfin/mach-bf537/boards/dnp5370.c | |||
@@ -399,9 +399,10 @@ arch_initcall(dnp5370_init); | |||
399 | /* | 399 | /* |
400 | * Currently the MAC address is saved in Flash by U-Boot | 400 | * Currently the MAC address is saved in Flash by U-Boot |
401 | */ | 401 | */ |
402 | void bfin_get_ether_addr(char *addr) | 402 | int bfin_get_ether_addr(char *addr) |
403 | { | 403 | { |
404 | *(u32 *)(&(addr[0])) = bfin_read32(FLASH_MAC); | 404 | *(u32 *)(&(addr[0])) = bfin_read32(FLASH_MAC); |
405 | *(u16 *)(&(addr[4])) = bfin_read16(FLASH_MAC + 4); | 405 | *(u16 *)(&(addr[4])) = bfin_read16(FLASH_MAC + 4); |
406 | return 0; | ||
406 | } | 407 | } |
407 | EXPORT_SYMBOL(bfin_get_ether_addr); | 408 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf537/boards/pnav10.c b/arch/blackfin/mach-bf537/boards/pnav10.c index 6fd84709fc68..e9507feea319 100644 --- a/arch/blackfin/mach-bf537/boards/pnav10.c +++ b/arch/blackfin/mach-bf537/boards/pnav10.c | |||
@@ -535,9 +535,8 @@ void __init native_machine_early_platform_add_devices(void) | |||
535 | ARRAY_SIZE(stamp_early_devices)); | 535 | ARRAY_SIZE(stamp_early_devices)); |
536 | } | 536 | } |
537 | 537 | ||
538 | void bfin_get_ether_addr(char *addr) | 538 | int bfin_get_ether_addr(char *addr) |
539 | { | 539 | { |
540 | random_ether_addr(addr); | 540 | return 1; |
541 | printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__); | ||
542 | } | 541 | } |
543 | EXPORT_SYMBOL(bfin_get_ether_addr); | 542 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c index 2221173e489e..0b807253f4d6 100644 --- a/arch/blackfin/mach-bf537/boards/stamp.c +++ b/arch/blackfin/mach-bf537/boards/stamp.c | |||
@@ -2993,9 +2993,10 @@ void native_machine_restart(char *cmd) | |||
2993 | * Currently the MAC address is saved in Flash by U-Boot | 2993 | * Currently the MAC address is saved in Flash by U-Boot |
2994 | */ | 2994 | */ |
2995 | #define FLASH_MAC 0x203f0000 | 2995 | #define FLASH_MAC 0x203f0000 |
2996 | void bfin_get_ether_addr(char *addr) | 2996 | int bfin_get_ether_addr(char *addr) |
2997 | { | 2997 | { |
2998 | *(u32 *)(&(addr[0])) = bfin_read32(FLASH_MAC); | 2998 | *(u32 *)(&(addr[0])) = bfin_read32(FLASH_MAC); |
2999 | *(u16 *)(&(addr[4])) = bfin_read16(FLASH_MAC + 4); | 2999 | *(u16 *)(&(addr[4])) = bfin_read16(FLASH_MAC + 4); |
3000 | return 0; | ||
3000 | } | 3001 | } |
3001 | EXPORT_SYMBOL(bfin_get_ether_addr); | 3002 | EXPORT_SYMBOL(bfin_get_ether_addr); |
diff --git a/arch/blackfin/mach-bf537/boards/tcm_bf537.c b/arch/blackfin/mach-bf537/boards/tcm_bf537.c index 988517671a5d..3fb421823857 100644 --- a/arch/blackfin/mach-bf537/boards/tcm_bf537.c +++ b/arch/blackfin/mach-bf537/boards/tcm_bf537.c | |||
@@ -780,9 +780,8 @@ void __init native_machine_early_platform_add_devices(void) | |||
780 | ARRAY_SIZE(cm_bf537_early_devices)); | 780 | ARRAY_SIZE(cm_bf537_early_devices)); |
781 | } | 781 | } |
782 | 782 | ||
783 | void bfin_get_ether_addr(char *addr) | 783 | int bfin_get_ether_addr(char *addr) |
784 | { | 784 | { |
785 | random_ether_addr(addr); | 785 | return 1; |
786 | printk(KERN_WARNING "%s:%s: Setting Ethernet MAC to a random one\n", __FILE__, __func__); | ||
787 | } | 786 | } |
788 | EXPORT_SYMBOL(bfin_get_ether_addr); | 787 | EXPORT_SYMBOL(bfin_get_ether_addr); |