CONFIG_YAFFS2_MTD_ENABLED must also enable the MTD section of yaffs_internal_read_super(). The MTD part in yaffs_internal_read_super() was compiled in only if CONFIG_YAFFS_MTD_ENABLED was set. Now do it if CONFIG_YAFFS_MTD_ENABLED or CONFIG_YAFFS2_MTD_ENABLED are set. -- Luc Van Oostenryck