summaryrefslogtreecommitdiff
path: root/include/linux/of_mtd.h
diff options
context:
space:
mode:
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>2012-07-10 13:35:50 +0000
committerRob Herring <rob.herring@calxeda.com>2012-07-10 10:32:06 -0500
commite95d8aafa5d911bf523bc47fe89f3336eb8a1b51 (patch)
treef9c0f35017fb68d36dbb9357682d24e000a49950 /include/linux/of_mtd.h
parent74a7f08448adea6cb47cd9b260c98ff168117e92 (diff)
downloadlwn-e95d8aafa5d911bf523bc47fe89f3336eb8a1b51.tar.gz
lwn-e95d8aafa5d911bf523bc47fe89f3336eb8a1b51.zip
of: mtd: nuke useless const qualifier
This patch does the following: -const int of_get_nand_ecc_mode(struct device_node *np) +int of_get_nand_ecc_mode(struct device_node *np) because: 1. it is probably just a typo? 2. it causes warnings like this when people assing the returned value to an 'int' variable: include/linux/of_mtd.h:14:18: warning: type qualifiers ignored on functi= on return type [-Wignored-qualifiers] Remove also the unnecessary "extern" qualifier to be consistent with other declarations in this file. Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'include/linux/of_mtd.h')
-rw-r--r--include/linux/of_mtd.h2
1 files changed, 1 insertions, 1 deletions
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 @@
#ifdef CONFIG_OF_MTD
#include <linux/of.h>
-extern const int of_get_nand_ecc_mode(struct device_node *np);
+int of_get_nand_ecc_mode(struct device_node *np);
int of_get_nand_bus_width(struct device_node *np);
bool of_get_nand_on_flash_bbt(struct device_node *np);
#endif