| Submitter | Andrew Morton |
|---|---|
| Date | Dec. 1, 2008, 10:23 p.m. |
| Message ID | <200812012223.mB1MNdQj014532@imap1.linux-foundation.org> |
| Download | mbox | patch |
| Permalink | /patch/11670/ |
| State | New |
| Headers | show |
Comments
Patch
diff -puN drivers/mtd/maps/nettel.c~drivers-mtd-maps-nettelc-use-array_size drivers/mtd/maps/nettel.c --- a/drivers/mtd/maps/nettel.c~drivers-mtd-maps-nettelc-use-array_size +++ a/drivers/mtd/maps/nettel.c @@ -362,8 +362,7 @@ static int __init nettel_init(void) intel_mtd->owner = THIS_MODULE; - num_intel_partitions = sizeof(nettel_intel_partitions) / - sizeof(nettel_intel_partitions[0]); + num_intel_partitions = ARRAY_SIZE(nettel_intel_partitions); if (intelboot) { /*