/* Registers a pair of callbacks function to be called upon addition or removal of MTD devices. Causes the 'add' callback to be immediately invoked for each MTD device currently present in the system.  */
void register_mtd_user(struct mtd_notifier *new)
/* Registers a pair of callbacks function to be called upon addition or removal of MTD devices. Causes the 'add' callback to be immediately invoked for each MTD device currently present in the system.  */
void register_mtd_user(struct mtd_notifier *new)
{
	struct mtd_info *mtd;
	mutex_lock(&mtd_table_mutex);
	list_add(&new->list, &mtd_notifiers);
	__module_get(THIS_MODULE);
	mtd_for_each_device(mtd)
		new->add(mtd);
	mutex_unlock(&mtd_table_mutex);
}