include/linux/of_mtd.h | 6 ++++++
2 files changed, 42 insertions(+)
-diff --git a/drivers/of/of_mtd.c b/drivers/of/of_mtd.c
-index b7361ed..15d056e 100644
--- a/drivers/of/of_mtd.c
+++ b/drivers/of/of_mtd.c
-@@ -50,6 +50,42 @@ int of_get_nand_ecc_mode(struct device_node *np)
+@@ -50,6 +50,42 @@ int of_get_nand_ecc_mode(struct device_n
EXPORT_SYMBOL_GPL(of_get_nand_ecc_mode);
/**
* of_get_nand_ecc_step_size - Get ECC step size associated to
* the required ECC strength (see below).
* @np: Pointer to the given device_node
-diff --git a/include/linux/of_mtd.h b/include/linux/of_mtd.h
-index e266caa..0f6aca5 100644
--- a/include/linux/of_mtd.h
+++ b/include/linux/of_mtd.h
@@ -13,6 +13,7 @@
int of_get_nand_ecc_step_size(struct device_node *np);
int of_get_nand_ecc_strength(struct device_node *np);
int of_get_nand_bus_width(struct device_node *np);
-@@ -25,6 +26,11 @@ static inline int of_get_nand_ecc_mode(struct device_node *np)
+@@ -24,6 +25,11 @@ static inline int of_get_nand_ecc_mode(s
+ {
return -ENOSYS;
}
-
++
+static inline int of_get_nand_ecc_algo(struct device_node *np)
+{
+ return -ENOSYS;
+}
-+
+
static inline int of_get_nand_ecc_step_size(struct device_node *np)
{
- return -ENOSYS;
---
-1.7.10.4
-