yaffsram and yaffsram2 need to use get_sb_nodev() instead of get_sb_bdev() and kill_litter_super() instead of kill_block_super(). See ramfs, for example.