[MTD] NAND Replace oobinfo by ecclayout
[powerpc.git] / drivers / mtd / maps / uclinux.c
index cc37213..f7264dc 100644 (file)
@@ -5,7 +5,7 @@
  *
  *     (C) Copyright 2002, Greg Ungerer (gerg@snapgear.com)
  *
- *     $Id: uclinux.c,v 1.10 2005/01/05 18:05:13 dwmw2 Exp $
+ *     $Id: uclinux.c,v 1.12 2005/11/07 11:14:29 gleixner Exp $
  */
 
 /****************************************************************************/
@@ -37,7 +37,7 @@ struct mtd_partition uclinux_romfs[] = {
        { .name = "ROMfs" }
 };
 
-#define        NUM_PARTITIONS  (sizeof(uclinux_romfs) / sizeof(uclinux_romfs[0]))
+#define        NUM_PARTITIONS  ARRAY_SIZE(uclinux_romfs)
 
 /****************************************************************************/
 
@@ -82,7 +82,7 @@ int __init uclinux_mtd_init(void)
                iounmap(mapp->virt);
                return(-ENXIO);
        }
-               
+
        mtd->owner = THIS_MODULE;
        mtd->point = uclinux_point;
        mtd->priv = mapp;