]> err.no Git - linux-2.6/blobdiff - arch/i386/kernel/mca.c
[PATCH] vDSO hash-style fix
[linux-2.6] / arch / i386 / kernel / mca.c
index 8600faeea29ddb186b1bb5b271ddf8c767ebc3da..cd5456f14af4bb16eb83adb53bf22592ed47eb38 100644 (file)
@@ -46,7 +46,6 @@
 #include <asm/io.h>
 #include <linux/proc_fs.h>
 #include <linux/mman.h>
-#include <linux/config.h>
 #include <linux/mm.h>
 #include <linux/pagemap.h>
 #include <linux/ioport.h>
@@ -132,7 +131,7 @@ static struct resource mca_standard_resources[] = {
        { .start = 0x100, .end = 0x107, .name = "POS (MCA)" }
 };
 
-#define MCA_STANDARD_RESOURCES (sizeof(mca_standard_resources)/sizeof(struct resource))
+#define MCA_STANDARD_RESOURCES ARRAY_SIZE(mca_standard_resources)
 
 /**
  *     mca_read_and_store_pos - read the POS registers into a memory buffer