diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-07-10 09:35:50 -0400 |
---|---|---|
committer | Rob Herring <rob.herring@calxeda.com> | 2012-07-10 11:32:06 -0400 |
commit | e95d8aafa5d911bf523bc47fe89f3336eb8a1b51 (patch) | |
tree | f9c0f35017fb68d36dbb9357682d24e000a49950 /drivers/of/of_mtd.c | |
parent | 74a7f08448adea6cb47cd9b260c98ff168117e92 (diff) |
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 'drivers/of/of_mtd.c')
-rw-r--r-- | drivers/of/of_mtd.c | 2 |
1 files changed, 1 insertions, 1 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; |