ARM: 8641/1: treewide: Replace uses of virt_to_phys with __pa_symbol
[linux-2.6-microblaze.git] / arch / arm / mach-axxia / platsmp.c
index 959d4df..502e3df 100644 (file)
@@ -25,7 +25,7 @@
 static void write_release_addr(u32 release_phys)
 {
        u32 *virt = (u32 *) phys_to_virt(release_phys);
-       writel_relaxed(virt_to_phys(secondary_startup), virt);
+       writel_relaxed(__pa_symbol(secondary_startup), virt);
        /* Make sure this store is visible to other CPUs */
        smp_wmb();
        __cpuc_flush_dcache_area(virt, sizeof(u32));
@@ -82,7 +82,7 @@ static void __init axxia_smp_prepare_cpus(unsigned int max_cpus)
        }
 }
 
-static struct smp_operations axxia_smp_ops __initdata = {
+static const struct smp_operations axxia_smp_ops __initconst = {
        .smp_prepare_cpus       = axxia_smp_prepare_cpus,
        .smp_boot_secondary     = axxia_boot_secondary,
 };