summaryrefslogtreecommitdiff
path: root/package/mtd/src/mtd.c
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2012-02-06 17:15:40 +0000
committerFlorian Fainelli <florian@openwrt.org>2012-02-06 17:15:40 +0000
commit486d54bf052f433a1c2f71e08aafa75ec0a23728 (patch)
treefe269f1842b74f67681e60058926e2459f4773e7 /package/mtd/src/mtd.c
parent620843b2eef4c20d4fd63ba5fd3d30392702c5c0 (diff)
downloadmtk-20170518-486d54bf052f433a1c2f71e08aafa75ec0a23728.zip
mtk-20170518-486d54bf052f433a1c2f71e08aafa75ec0a23728.tar.gz
mtk-20170518-486d54bf052f433a1c2f71e08aafa75ec0a23728.tar.bz2
mtd: define MTDREFRESH if not defined (external kernel)
SVN-Revision: 30340
Diffstat (limited to 'package/mtd/src/mtd.c')
-rw-r--r--package/mtd/src/mtd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/mtd/src/mtd.c b/package/mtd/src/mtd.c
index 5fa260b..a7d4c1b 100644
--- a/package/mtd/src/mtd.c
+++ b/package/mtd/src/mtd.c
@@ -45,6 +45,10 @@
#include "fis.h"
#include "mtd.h"
+#ifndef MTDREFRESH
+#define MTDREFRESH _IO('M', 50)
+#endif
+
#define MAX_ARGS 8
#define JFFS2_DEFAULT_DIR "" /* directory name without /, empty means root dir */