kernel/generic: modify mtd related patches for 3.14