/* Removes a callback function pair from the list of 'users' to be notified upon addition or removal of MTD devices. Causes the 'remove' callback to be immediately invoked for each MTD device currently present in the system.  */
int unregister_mtd_user(struct mtd_notifier *old)
/* Removes a callback function pair from the list of 'users' to be notified upon addition or removal of MTD devices. Causes the 'remove' callback to be immediately invoked for each MTD device currently present in the system.  */
int unregister_mtd_user(struct mtd_notifier *old)
{
	struct mtd_info *mtd;
	mutex_lock(&mtd_table_mutex);
	module_put(THIS_MODULE);
	mtd_for_each_device(mtd)
		old->remove(mtd);
	list_del(&old->list);
	mutex_unlock(&mtd_table_mutex);
	return 0;
}