diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-05-15 02:19:34 -0400 |
---|---|---|
committer | Paul Mundt <lethal@hera.kernel.org> | 2007-06-07 22:43:39 -0400 |
commit | 82f81f4784479df17a80caff4a7156da0a2f7dea (patch) | |
tree | 3679bd23f2c9daa24f9cf3e170a33f851ed45029 /arch/sh/boards/se | |
parent | 25f8151bdcdd62c6b879e3669a562c0d329eee4a (diff) |
sh: Kill off machvec aliases.
We now throw all of the machvecs in to .machvec.init and either
select one on the command line, or copy out the first (and
usually only) one to sh_mv. The rest are freed as usual.
This gets rid of all of the silly sh_mv aliasing and makes the
selection explicit rather than link-order dependent.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/boards/se')
-rw-r--r-- | arch/sh/boards/se/7206/setup.c | 3 | ||||
-rw-r--r-- | arch/sh/boards/se/7300/setup.c | 3 | ||||
-rw-r--r-- | arch/sh/boards/se/73180/setup.c | 3 | ||||
-rw-r--r-- | arch/sh/boards/se/7343/setup.c | 3 | ||||
-rw-r--r-- | arch/sh/boards/se/7619/setup.c | 3 | ||||
-rw-r--r-- | arch/sh/boards/se/770x/setup.c | 3 | ||||
-rw-r--r-- | arch/sh/boards/se/7722/setup.c | 3 | ||||
-rw-r--r-- | arch/sh/boards/se/7751/setup.c | 3 | ||||
-rw-r--r-- | arch/sh/boards/se/7780/setup.c | 3 |
9 files changed, 9 insertions, 18 deletions
diff --git a/arch/sh/boards/se/7206/setup.c b/arch/sh/boards/se/7206/setup.c index ca714879f559..a074b62505ef 100644 --- a/arch/sh/boards/se/7206/setup.c +++ b/arch/sh/boards/se/7206/setup.c | |||
@@ -70,7 +70,7 @@ __initcall(se7206_devices_setup); | |||
70 | * The Machine Vector | 70 | * The Machine Vector |
71 | */ | 71 | */ |
72 | 72 | ||
73 | struct sh_machine_vector mv_se __initmv = { | 73 | static struct sh_machine_vector mv_se __initmv = { |
74 | .mv_name = "SolutionEngine", | 74 | .mv_name = "SolutionEngine", |
75 | .mv_nr_irqs = 256, | 75 | .mv_nr_irqs = 256, |
76 | .mv_inb = se7206_inb, | 76 | .mv_inb = se7206_inb, |
@@ -96,4 +96,3 @@ struct sh_machine_vector mv_se __initmv = { | |||
96 | 96 | ||
97 | .mv_init_irq = init_se7206_IRQ, | 97 | .mv_init_irq = init_se7206_IRQ, |
98 | }; | 98 | }; |
99 | ALIAS_MV(se) | ||
diff --git a/arch/sh/boards/se/7300/setup.c b/arch/sh/boards/se/7300/setup.c index f1960956bad0..eb469f5b6e97 100644 --- a/arch/sh/boards/se/7300/setup.c +++ b/arch/sh/boards/se/7300/setup.c | |||
@@ -46,7 +46,7 @@ __initcall(se7300_devices_setup); | |||
46 | /* | 46 | /* |
47 | * The Machine Vector | 47 | * The Machine Vector |
48 | */ | 48 | */ |
49 | struct sh_machine_vector mv_7300se __initmv = { | 49 | static struct sh_machine_vector mv_7300se __initmv = { |
50 | .mv_name = "SolutionEngine 7300", | 50 | .mv_name = "SolutionEngine 7300", |
51 | .mv_nr_irqs = 109, | 51 | .mv_nr_irqs = 109, |
52 | .mv_inb = sh7300se_inb, | 52 | .mv_inb = sh7300se_inb, |
@@ -72,4 +72,3 @@ struct sh_machine_vector mv_7300se __initmv = { | |||
72 | 72 | ||
73 | .mv_init_irq = init_7300se_IRQ, | 73 | .mv_init_irq = init_7300se_IRQ, |
74 | }; | 74 | }; |
75 | ALIAS_MV(7300se) | ||
diff --git a/arch/sh/boards/se/73180/setup.c b/arch/sh/boards/se/73180/setup.c index e143017c8975..1deee8556642 100644 --- a/arch/sh/boards/se/73180/setup.c +++ b/arch/sh/boards/se/73180/setup.c | |||
@@ -46,7 +46,7 @@ __initcall(se73180_devices_setup); | |||
46 | /* | 46 | /* |
47 | * The Machine Vector | 47 | * The Machine Vector |
48 | */ | 48 | */ |
49 | struct sh_machine_vector mv_73180se __initmv = { | 49 | static struct sh_machine_vector mv_73180se __initmv = { |
50 | .mv_name = "SolutionEngine 73180", | 50 | .mv_name = "SolutionEngine 73180", |
51 | .mv_nr_irqs = 108, | 51 | .mv_nr_irqs = 108, |
52 | .mv_inb = sh73180se_inb, | 52 | .mv_inb = sh73180se_inb, |
@@ -73,4 +73,3 @@ struct sh_machine_vector mv_73180se __initmv = { | |||
73 | .mv_init_irq = init_73180se_IRQ, | 73 | .mv_init_irq = init_73180se_IRQ, |
74 | .mv_irq_demux = shmse_irq_demux, | 74 | .mv_irq_demux = shmse_irq_demux, |
75 | }; | 75 | }; |
76 | ALIAS_MV(73180se) | ||
diff --git a/arch/sh/boards/se/7343/setup.c b/arch/sh/boards/se/7343/setup.c index 3fdb16f2cef1..8fec155e2ff7 100644 --- a/arch/sh/boards/se/7343/setup.c +++ b/arch/sh/boards/se/7343/setup.c | |||
@@ -64,7 +64,7 @@ static void __init sh7343se_setup(char **cmdline_p) | |||
64 | /* | 64 | /* |
65 | * The Machine Vector | 65 | * The Machine Vector |
66 | */ | 66 | */ |
67 | struct sh_machine_vector mv_7343se __initmv = { | 67 | static struct sh_machine_vector mv_7343se __initmv = { |
68 | .mv_name = "SolutionEngine 7343", | 68 | .mv_name = "SolutionEngine 7343", |
69 | .mv_setup = sh7343se_setup, | 69 | .mv_setup = sh7343se_setup, |
70 | .mv_nr_irqs = 108, | 70 | .mv_nr_irqs = 108, |
@@ -92,4 +92,3 @@ struct sh_machine_vector mv_7343se __initmv = { | |||
92 | .mv_init_irq = init_7343se_IRQ, | 92 | .mv_init_irq = init_7343se_IRQ, |
93 | .mv_irq_demux = shmse_irq_demux, | 93 | .mv_irq_demux = shmse_irq_demux, |
94 | }; | 94 | }; |
95 | ALIAS_MV(7343se) | ||
diff --git a/arch/sh/boards/se/7619/setup.c b/arch/sh/boards/se/7619/setup.c index 52d2c4d5d2fa..1d0ef7faa10d 100644 --- a/arch/sh/boards/se/7619/setup.c +++ b/arch/sh/boards/se/7619/setup.c | |||
@@ -15,8 +15,7 @@ | |||
15 | * The Machine Vector | 15 | * The Machine Vector |
16 | */ | 16 | */ |
17 | 17 | ||
18 | struct sh_machine_vector mv_se __initmv = { | 18 | static struct sh_machine_vector mv_se __initmv = { |
19 | .mv_name = "SolutionEngine", | 19 | .mv_name = "SolutionEngine", |
20 | .mv_nr_irqs = 108, | 20 | .mv_nr_irqs = 108, |
21 | }; | 21 | }; |
22 | ALIAS_MV(se) | ||
diff --git a/arch/sh/boards/se/770x/setup.c b/arch/sh/boards/se/770x/setup.c index 17a2631de3ba..2962da148f3f 100644 --- a/arch/sh/boards/se/770x/setup.c +++ b/arch/sh/boards/se/770x/setup.c | |||
@@ -122,7 +122,7 @@ device_initcall(se_devices_setup); | |||
122 | /* | 122 | /* |
123 | * The Machine Vector | 123 | * The Machine Vector |
124 | */ | 124 | */ |
125 | struct sh_machine_vector mv_se __initmv = { | 125 | static struct sh_machine_vector mv_se __initmv = { |
126 | .mv_name = "SolutionEngine", | 126 | .mv_name = "SolutionEngine", |
127 | .mv_setup = smsc_setup, | 127 | .mv_setup = smsc_setup, |
128 | #if defined(CONFIG_CPU_SH4) | 128 | #if defined(CONFIG_CPU_SH4) |
@@ -160,4 +160,3 @@ struct sh_machine_vector mv_se __initmv = { | |||
160 | 160 | ||
161 | .mv_init_irq = init_se_IRQ, | 161 | .mv_init_irq = init_se_IRQ, |
162 | }; | 162 | }; |
163 | ALIAS_MV(se) | ||
diff --git a/arch/sh/boards/se/7722/setup.c b/arch/sh/boards/se/7722/setup.c index 636ca6c987e0..6cca6cbc8069 100644 --- a/arch/sh/boards/se/7722/setup.c +++ b/arch/sh/boards/se/7722/setup.c | |||
@@ -137,7 +137,7 @@ static void __init se7722_setup(char **cmdline_p) | |||
137 | /* | 137 | /* |
138 | * The Machine Vector | 138 | * The Machine Vector |
139 | */ | 139 | */ |
140 | struct sh_machine_vector mv_se7722 __initmv = { | 140 | static struct sh_machine_vector mv_se7722 __initmv = { |
141 | .mv_name = "Solution Engine 7722" , | 141 | .mv_name = "Solution Engine 7722" , |
142 | .mv_setup = se7722_setup , | 142 | .mv_setup = se7722_setup , |
143 | .mv_nr_irqs = 109 , | 143 | .mv_nr_irqs = 109 , |
@@ -145,4 +145,3 @@ struct sh_machine_vector mv_se7722 __initmv = { | |||
145 | .mv_irq_demux = se7722_irq_demux, | 145 | .mv_irq_demux = se7722_irq_demux, |
146 | 146 | ||
147 | }; | 147 | }; |
148 | ALIAS_MV(se7722) | ||
diff --git a/arch/sh/boards/se/7751/setup.c b/arch/sh/boards/se/7751/setup.c index 52c7bfa57c2c..7873d07e40c1 100644 --- a/arch/sh/boards/se/7751/setup.c +++ b/arch/sh/boards/se/7751/setup.c | |||
@@ -48,7 +48,7 @@ __initcall(se7751_devices_setup); | |||
48 | /* | 48 | /* |
49 | * The Machine Vector | 49 | * The Machine Vector |
50 | */ | 50 | */ |
51 | struct sh_machine_vector mv_7751se __initmv = { | 51 | static struct sh_machine_vector mv_7751se __initmv = { |
52 | .mv_name = "7751 SolutionEngine", | 52 | .mv_name = "7751 SolutionEngine", |
53 | .mv_nr_irqs = 72, | 53 | .mv_nr_irqs = 72, |
54 | 54 | ||
@@ -71,4 +71,3 @@ struct sh_machine_vector mv_7751se __initmv = { | |||
71 | 71 | ||
72 | .mv_init_irq = init_7751se_IRQ, | 72 | .mv_init_irq = init_7751se_IRQ, |
73 | }; | 73 | }; |
74 | ALIAS_MV(7751se) | ||
diff --git a/arch/sh/boards/se/7780/setup.c b/arch/sh/boards/se/7780/setup.c index df7d08a24c9f..723f2fd4d55b 100644 --- a/arch/sh/boards/se/7780/setup.c +++ b/arch/sh/boards/se/7780/setup.c | |||
@@ -113,10 +113,9 @@ static void __init se7780_setup(char **cmdline_p) | |||
113 | /* | 113 | /* |
114 | * The Machine Vector | 114 | * The Machine Vector |
115 | */ | 115 | */ |
116 | struct sh_machine_vector mv_se7780 __initmv = { | 116 | static struct sh_machine_vector mv_se7780 __initmv = { |
117 | .mv_name = "Solution Engine 7780" , | 117 | .mv_name = "Solution Engine 7780" , |
118 | .mv_setup = se7780_setup , | 118 | .mv_setup = se7780_setup , |
119 | .mv_nr_irqs = 111 , | 119 | .mv_nr_irqs = 111 , |
120 | .mv_init_irq = init_se7780_IRQ, | 120 | .mv_init_irq = init_se7780_IRQ, |
121 | }; | 121 | }; |
122 | ALIAS_MV(se7780) | ||