--- zzzz-none-000/linux-2.6.32.61/drivers/mtd/mtdchar.c 2013-06-10 09:43:48.000000000 +0000 +++ ar10-7272-687/linux-2.6.32.61/drivers/mtd/mtdchar.c 2013-02-12 11:14:43.000000000 +0000 @@ -18,6 +18,7 @@ #include #include +#include #include @@ -815,6 +816,13 @@ file->f_pos = 0; break; } +#ifdef CONFIG_MTD_PARTITIONS + case MTDREFRESH: + { + ret = refresh_mtd_partitions(mtd); + break; + } +#endif default: ret = -ENOTTY;