diff options
Diffstat (limited to 'arch/m68k/amiga')
-rw-r--r-- | arch/m68k/amiga/config.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/arch/m68k/amiga/config.c b/arch/m68k/amiga/config.c index 0c92c1baf9bf..06920e85fac9 100644 --- a/arch/m68k/amiga/config.c +++ b/arch/m68k/amiga/config.c | |||
@@ -145,37 +145,37 @@ static struct resource ram_resource[NUM_MEMINFO]; | |||
145 | int __init amiga_parse_bootinfo(const struct bi_record *record) | 145 | int __init amiga_parse_bootinfo(const struct bi_record *record) |
146 | { | 146 | { |
147 | int unknown = 0; | 147 | int unknown = 0; |
148 | const unsigned long *data = record->data; | 148 | const void *data = record->data; |
149 | 149 | ||
150 | switch (record->tag) { | 150 | switch (be16_to_cpu(record->tag)) { |
151 | case BI_AMIGA_MODEL: | 151 | case BI_AMIGA_MODEL: |
152 | amiga_model = *data; | 152 | amiga_model = be32_to_cpup(data); |
153 | break; | 153 | break; |
154 | 154 | ||
155 | case BI_AMIGA_ECLOCK: | 155 | case BI_AMIGA_ECLOCK: |
156 | amiga_eclock = *data; | 156 | amiga_eclock = be32_to_cpup(data); |
157 | break; | 157 | break; |
158 | 158 | ||
159 | case BI_AMIGA_CHIPSET: | 159 | case BI_AMIGA_CHIPSET: |
160 | amiga_chipset = *data; | 160 | amiga_chipset = be32_to_cpup(data); |
161 | break; | 161 | break; |
162 | 162 | ||
163 | case BI_AMIGA_CHIP_SIZE: | 163 | case BI_AMIGA_CHIP_SIZE: |
164 | amiga_chip_size = *(const int *)data; | 164 | amiga_chip_size = be32_to_cpup(data); |
165 | break; | 165 | break; |
166 | 166 | ||
167 | case BI_AMIGA_VBLANK: | 167 | case BI_AMIGA_VBLANK: |
168 | amiga_vblank = *(const unsigned char *)data; | 168 | amiga_vblank = *(const __u8 *)data; |
169 | break; | 169 | break; |
170 | 170 | ||
171 | case BI_AMIGA_PSFREQ: | 171 | case BI_AMIGA_PSFREQ: |
172 | amiga_psfreq = *(const unsigned char *)data; | 172 | amiga_psfreq = *(const __u8 *)data; |
173 | break; | 173 | break; |
174 | 174 | ||
175 | case BI_AMIGA_AUTOCON: | 175 | case BI_AMIGA_AUTOCON: |
176 | #ifdef CONFIG_ZORRO | 176 | #ifdef CONFIG_ZORRO |
177 | if (zorro_num_autocon < ZORRO_NUM_AUTO) { | 177 | if (zorro_num_autocon < ZORRO_NUM_AUTO) { |
178 | const struct ConfigDev *cd = (struct ConfigDev *)data; | 178 | const struct ConfigDev *cd = data; |
179 | struct zorro_dev_init *dev = &zorro_autocon_init[zorro_num_autocon++]; | 179 | struct zorro_dev_init *dev = &zorro_autocon_init[zorro_num_autocon++]; |
180 | dev->rom = cd->cd_Rom; | 180 | dev->rom = cd->cd_Rom; |
181 | dev->slotaddr = be16_to_cpu(cd->cd_SlotAddr); | 181 | dev->slotaddr = be16_to_cpu(cd->cd_SlotAddr); |