PARTITION_COUNT
count = PARTITION_COUNT(partition_info.a2);
mtd_device_register(mymtd, flagadm_parts, PARTITION_COUNT);