Message ID | 200812012223.mB1MNdQj014532@imap1.linux-foundation.org |
---|---|
State | Accepted |
Headers | show |
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) { /*