/* Search global mtdids list and find id of requested type and number. */
static struct mtdids* id_find(u8 type, u8 num)
/* Search global mtdids list and find id of requested type and number. */
static struct mtdids* id_find(u8 type, u8 num)
{
	struct list_head *entry;
	struct mtdids *id;
	list_for_each(entry, &mtdids) {
		id = list_entry(entry, struct mtdids, link);
		if ((id->type == type) && (id->num == num))
			return id;
	}
	return NULL;
}