diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-03-15 12:48:03 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2014-05-29 19:47:28 -0400 |
commit | ce84130384badcad2cdbc1e825657d622165f0e6 (patch) | |
tree | 2c6c7f460626c05079b280057e0bf2308c726a56 /arch/arm/mm/cache-l2x0.c | |
parent | a65bb925601cf35ef5db54c8a9ad9e6575c6fe8c (diff) |
ARM: l2c: tidy up l2x0_of_data declarations
Remove NULL initialisers, make these all __initconst structures, and
order their members in the same order as the structure declaration.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm/cache-l2x0.c')
-rw-r--r-- | arch/arm/mm/cache-l2x0.c | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index ac410b21edfb..063e1787e8c3 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c | |||
@@ -873,49 +873,48 @@ static void __init aurora_of_setup(const struct device_node *np, | |||
873 | *aux_mask &= ~mask; | 873 | *aux_mask &= ~mask; |
874 | } | 874 | } |
875 | 875 | ||
876 | static const struct l2x0_of_data pl310_data = { | 876 | static const struct l2x0_of_data pl310_data __initconst = { |
877 | .setup = pl310_of_setup, | 877 | .setup = pl310_of_setup, |
878 | .save = pl310_save, | 878 | .save = pl310_save, |
879 | .outer_cache = { | 879 | .outer_cache = { |
880 | .resume = pl310_resume, | ||
881 | .inv_range = l2x0_inv_range, | 880 | .inv_range = l2x0_inv_range, |
882 | .clean_range = l2x0_clean_range, | 881 | .clean_range = l2x0_clean_range, |
883 | .flush_range = l2x0_flush_range, | 882 | .flush_range = l2x0_flush_range, |
884 | .sync = l2x0_cache_sync, | ||
885 | .flush_all = l2x0_flush_all, | 883 | .flush_all = l2x0_flush_all, |
886 | .disable = l2x0_disable, | 884 | .disable = l2x0_disable, |
885 | .sync = l2x0_cache_sync, | ||
886 | .resume = pl310_resume, | ||
887 | }, | 887 | }, |
888 | }; | 888 | }; |
889 | 889 | ||
890 | static const struct l2x0_of_data l2x0_data = { | 890 | static const struct l2x0_of_data l2x0_data __initconst = { |
891 | .setup = l2x0_of_setup, | 891 | .setup = l2x0_of_setup, |
892 | .save = NULL, | ||
893 | .outer_cache = { | 892 | .outer_cache = { |
894 | .resume = l2x0_resume, | ||
895 | .inv_range = l2x0_inv_range, | 893 | .inv_range = l2x0_inv_range, |
896 | .clean_range = l2x0_clean_range, | 894 | .clean_range = l2x0_clean_range, |
897 | .flush_range = l2x0_flush_range, | 895 | .flush_range = l2x0_flush_range, |
898 | .sync = l2x0_cache_sync, | ||
899 | .flush_all = l2x0_flush_all, | 896 | .flush_all = l2x0_flush_all, |
900 | .disable = l2x0_disable, | 897 | .disable = l2x0_disable, |
898 | .sync = l2x0_cache_sync, | ||
899 | .resume = l2x0_resume, | ||
901 | }, | 900 | }, |
902 | }; | 901 | }; |
903 | 902 | ||
904 | static const struct l2x0_of_data aurora_with_outer_data = { | 903 | static const struct l2x0_of_data aurora_with_outer_data __initconst = { |
905 | .setup = aurora_of_setup, | 904 | .setup = aurora_of_setup, |
906 | .save = aurora_save, | 905 | .save = aurora_save, |
907 | .outer_cache = { | 906 | .outer_cache = { |
908 | .resume = aurora_resume, | ||
909 | .inv_range = aurora_inv_range, | 907 | .inv_range = aurora_inv_range, |
910 | .clean_range = aurora_clean_range, | 908 | .clean_range = aurora_clean_range, |
911 | .flush_range = aurora_flush_range, | 909 | .flush_range = aurora_flush_range, |
912 | .sync = l2x0_cache_sync, | ||
913 | .flush_all = l2x0_flush_all, | 910 | .flush_all = l2x0_flush_all, |
914 | .disable = l2x0_disable, | 911 | .disable = l2x0_disable, |
912 | .sync = l2x0_cache_sync, | ||
913 | .resume = aurora_resume, | ||
915 | }, | 914 | }, |
916 | }; | 915 | }; |
917 | 916 | ||
918 | static const struct l2x0_of_data aurora_no_outer_data = { | 917 | static const struct l2x0_of_data aurora_no_outer_data __initconst = { |
919 | .setup = aurora_of_setup, | 918 | .setup = aurora_of_setup, |
920 | .save = aurora_save, | 919 | .save = aurora_save, |
921 | .outer_cache = { | 920 | .outer_cache = { |
@@ -923,8 +922,7 @@ static const struct l2x0_of_data aurora_no_outer_data = { | |||
923 | }, | 922 | }, |
924 | }; | 923 | }; |
925 | 924 | ||
926 | static const struct l2x0_of_data tauros3_data = { | 925 | static const struct l2x0_of_data tauros3_data __initconst = { |
927 | .setup = NULL, | ||
928 | .save = tauros3_save, | 926 | .save = tauros3_save, |
929 | /* Tauros3 broadcasts L1 cache operations to L2 */ | 927 | /* Tauros3 broadcasts L1 cache operations to L2 */ |
930 | .outer_cache = { | 928 | .outer_cache = { |
@@ -932,17 +930,17 @@ static const struct l2x0_of_data tauros3_data = { | |||
932 | }, | 930 | }, |
933 | }; | 931 | }; |
934 | 932 | ||
935 | static const struct l2x0_of_data bcm_l2x0_data = { | 933 | static const struct l2x0_of_data bcm_l2x0_data __initconst = { |
936 | .setup = pl310_of_setup, | 934 | .setup = pl310_of_setup, |
937 | .save = pl310_save, | 935 | .save = pl310_save, |
938 | .outer_cache = { | 936 | .outer_cache = { |
939 | .resume = pl310_resume, | ||
940 | .inv_range = bcm_inv_range, | 937 | .inv_range = bcm_inv_range, |
941 | .clean_range = bcm_clean_range, | 938 | .clean_range = bcm_clean_range, |
942 | .flush_range = bcm_flush_range, | 939 | .flush_range = bcm_flush_range, |
943 | .sync = l2x0_cache_sync, | ||
944 | .flush_all = l2x0_flush_all, | 940 | .flush_all = l2x0_flush_all, |
945 | .disable = l2x0_disable, | 941 | .disable = l2x0_disable, |
942 | .sync = l2x0_cache_sync, | ||
943 | .resume = pl310_resume, | ||
946 | }, | 944 | }, |
947 | }; | 945 | }; |
948 | 946 | ||