From eded3cd0a52252f677ceacd1fbcae13be3d55e8f Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Thu, 9 Feb 2012 10:13:29 -0800 Subject: limbtd: implement mtd_dev_present for old kernels Implement the 'legacy_dev_present()' function which will check whether an MTD device is present by scanning the /proc/mtd file when the MTD subsystem does not support sysfs (the case for pre-2.6.30 kernels). This patch also moves the 'mtd_dev_present()' function to a slightly more logical position. Signed-off-by: Artem Bityutskiy --- lib/libmtd_int.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libmtd_int.h') diff --git a/lib/libmtd_int.h b/lib/libmtd_int.h index bb48d35..7913e67 100644 --- a/lib/libmtd_int.h +++ b/lib/libmtd_int.h @@ -95,6 +95,7 @@ struct libmtd }; int legacy_libmtd_open(void); +int legacy_dev_present(int mtd_num); int legacy_mtd_get_info(struct mtd_info *info); int legacy_get_dev_info(const char *node, struct mtd_dev_info *mtd); int legacy_get_dev_info1(int dev_num, struct mtd_dev_info *mtd); -- cgit v1.2.3