[PARISC] Clean up sti_flush

sti_flush is supposed to flush the caches so we can execute the STI rom
we copied to memory. Anything more than flush_icache_range is overkill.

Fixes a missing symbol when built as a module.

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>

authored by Kyle McMartin and committed by Kyle McMartin 03b18f1b fabb8ff4

+5 -9
+5 -9
drivers/video/console/sticore.c
··· 232 } 233 234 235 - /* FIXME: Do we have another solution for this ? */ 236 - static void sti_flush(unsigned long from, unsigned long len) 237 { 238 - flush_data_cache(); 239 - flush_kernel_dcache_range(from, len); 240 - flush_icache_range(from, from+len); 241 } 242 243 void __devinit 244 sti_rom_copy(unsigned long base, unsigned long count, void *dest) 245 { 246 - unsigned long dest_len = count; 247 unsigned long dest_start = (unsigned long) dest; 248 249 /* this still needs to be revisited (see arch/parisc/mm/init.c:246) ! */ ··· 256 dest++; 257 } 258 259 - sti_flush(dest_start, dest_len); 260 } 261 262 ··· 659 static void __devinit 660 sti_bmode_rom_copy(unsigned long base, unsigned long count, void *dest) 661 { 662 - unsigned long dest_len = count; 663 unsigned long dest_start = (unsigned long) dest; 664 665 while (count) { ··· 667 base += 4; 668 dest++; 669 } 670 - sti_flush(dest_start, dest_len); 671 } 672 673 static struct sti_rom * __devinit
··· 232 } 233 234 235 + static void sti_flush(unsigned long start, unsigned long end) 236 { 237 + flush_icache_range(start, end); 238 } 239 240 void __devinit 241 sti_rom_copy(unsigned long base, unsigned long count, void *dest) 242 { 243 unsigned long dest_start = (unsigned long) dest; 244 245 /* this still needs to be revisited (see arch/parisc/mm/init.c:246) ! */ ··· 260 dest++; 261 } 262 263 + sti_flush(dest_start, (unsigned long)dest); 264 } 265 266 ··· 663 static void __devinit 664 sti_bmode_rom_copy(unsigned long base, unsigned long count, void *dest) 665 { 666 unsigned long dest_start = (unsigned long) dest; 667 668 while (count) { ··· 672 base += 4; 673 dest++; 674 } 675 + 676 + sti_flush(dest_start, (unsigned long)dest); 677 } 678 679 static struct sti_rom * __devinit