diff options
-rw-r--r-- | drivers/of/of_mtd.c | 2 | ||||
-rw-r--r-- | include/linux/of_mtd.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/of_mtd.c b/drivers/of/of_mtd.c index e7cad627a5d1..a27ec94877e4 100644 --- a/drivers/of/of_mtd.c +++ b/drivers/of/of_mtd.c | |||
@@ -32,7 +32,7 @@ static const char *nand_ecc_modes[] = { | |||
32 | * The function gets ecc mode string from property 'nand-ecc-mode', | 32 | * The function gets ecc mode string from property 'nand-ecc-mode', |
33 | * and return its index in nand_ecc_modes table, or errno in error case. | 33 | * and return its index in nand_ecc_modes table, or errno in error case. |
34 | */ | 34 | */ |
35 | const int of_get_nand_ecc_mode(struct device_node *np) | 35 | int of_get_nand_ecc_mode(struct device_node *np) |
36 | { | 36 | { |
37 | const char *pm; | 37 | const char *pm; |
38 | int err, i; | 38 | int err, i; |
diff --git a/include/linux/of_mtd.h b/include/linux/of_mtd.h index bae1b6094c63..ed7f267e6389 100644 --- a/include/linux/of_mtd.h +++ b/include/linux/of_mtd.h | |||
@@ -11,7 +11,7 @@ | |||
11 | 11 | ||
12 | #ifdef CONFIG_OF_MTD | 12 | #ifdef CONFIG_OF_MTD |
13 | #include <linux/of.h> | 13 | #include <linux/of.h> |
14 | extern const int of_get_nand_ecc_mode(struct device_node *np); | 14 | int of_get_nand_ecc_mode(struct device_node *np); |
15 | int of_get_nand_bus_width(struct device_node *np); | 15 | int of_get_nand_bus_width(struct device_node *np); |
16 | bool of_get_nand_on_flash_bbt(struct device_node *np); | 16 | bool of_get_nand_on_flash_bbt(struct device_node *np); |
17 | #endif | 17 | #endif |