aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2018-10-08 07:58:47 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-15 10:16:06 -0400
commit7acf79b6b2160540af87f47a55d7e3e5637ddeb5 (patch)
tree6296bbf198cc2d3473b8bf260a659127dfb135da /drivers
parentc58a3ae58bce99d20fdbc5d97beecf31cc19f3dd (diff)
of: base: Fix english spelling in of_alias_get_alias_list()
Fix english spelling in of_alias_get_alias_list(). Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Reported-by: Randy Dunlap <rdunlap@infradead.org> Fixes: b1078c355d76 ("of: base: Introduce of_alias_get_alias_list() to check alias IDs") Signed-off-by: Michal Simek <michal.simek@xilinx.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/of/base.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 33011b88ed3f..908de45f966b 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1948,7 +1948,7 @@ EXPORT_SYMBOL_GPL(of_alias_get_id);
1948 * @matches: Array of OF device match structures to search in 1948 * @matches: Array of OF device match structures to search in
1949 * @stem: Alias stem of the given device_node 1949 * @stem: Alias stem of the given device_node
1950 * @bitmap: Bitmap field pointer 1950 * @bitmap: Bitmap field pointer
1951 * @nbits: Maximum number of alias ID which can be recorded it bitmap 1951 * @nbits: Maximum number of alias IDs which can be recorded in bitmap
1952 * 1952 *
1953 * The function travels the lookup table to record alias ids for the given 1953 * The function travels the lookup table to record alias ids for the given
1954 * device match structures and alias stem. 1954 * device match structures and alias stem.
@@ -1971,7 +1971,7 @@ int of_alias_get_alias_list(const struct of_device_id *matches,
1971 __func__, app->stem, app->id); 1971 __func__, app->stem, app->id);
1972 1972
1973 if (strcmp(app->stem, stem) != 0) { 1973 if (strcmp(app->stem, stem) != 0) {
1974 pr_debug("%s: stem comparison doesn't passed %s\n", 1974 pr_debug("%s: stem comparison didn't pass %s\n",
1975 __func__, app->stem); 1975 __func__, app->stem);
1976 continue; 1976 continue;
1977 } 1977 }
@@ -1986,7 +1986,7 @@ int of_alias_get_alias_list(const struct of_device_id *matches,
1986 pr_debug("%s: Allocated ID %d\n", __func__, app->id); 1986 pr_debug("%s: Allocated ID %d\n", __func__, app->id);
1987 set_bit(app->id, bitmap); 1987 set_bit(app->id, bitmap);
1988 } 1988 }
1989 /* Alias exist but it not compatible with matches */ 1989 /* Alias exists but is not compatible with matches */
1990 } 1990 }
1991 mutex_unlock(&of_mutex); 1991 mutex_unlock(&of_mutex);
1992 1992