]> git.karo-electronics.de Git - linux-beck.git/blobdiff - arch/x86/mach-default/setup.c
x86 boot: proper use of ARRAY_SIZE instead of repeated E820MAX constant
[linux-beck.git] / arch / x86 / mach-default / setup.c
index 47207ca71045329957f6e567227a1b3f724b739c..38a856c4fc07a891d5e5705789135e8431858d53 100644 (file)
@@ -108,7 +108,7 @@ void __init time_init_hook(void)
  * mca_nmi_hook - hook into MCA specific NMI chain
  *
  * Description:
- *     The MCA (Microchannel Arcitecture) has an NMI chain for NMI sources
+ *     The MCA (Microchannel Architecture) has an NMI chain for NMI sources
  *     along the MCA bus.  Use this to hook into that chain if you will need
  *     it.
  **/
@@ -163,7 +163,9 @@ char * __init machine_specific_memory_setup(void)
         * Otherwise fake a memory map; one section from 0k->640k,
         * the next section from 1mb->appropriate_mem_k
         */
-       sanitize_e820_map(boot_params.e820_map, &boot_params.e820_entries);
+       sanitize_e820_map(boot_params.e820_map,
+                       ARRAY_SIZE(boot_params.e820_map),
+                       &boot_params.e820_entries);
        if (copy_e820_map(boot_params.e820_map, boot_params.e820_entries)
            < 0) {
                unsigned long mem_size;