Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7acf79b6 authored by Michal Simek's avatar Michal Simek Committed by Greg Kroah-Hartman
Browse files

of: base: Fix english spelling in of_alias_get_alias_list()



Fix english spelling in of_alias_get_alias_list().

Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Reported-by: default avatarRandy Dunlap <rdunlap@infradead.org>
Fixes: b1078c35 ("of: base: Introduce of_alias_get_alias_list() to check alias IDs")
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent c58a3ae5
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -1948,7 +1948,7 @@ EXPORT_SYMBOL_GPL(of_alias_get_id);
 * @matches:	Array of OF device match structures to search in
 * @matches:	Array of OF device match structures to search in
 * @stem:	Alias stem of the given device_node
 * @stem:	Alias stem of the given device_node
 * @bitmap:	Bitmap field pointer
 * @bitmap:	Bitmap field pointer
 * @nbits:	Maximum number of alias ID which can be recorded it bitmap
 * @nbits:	Maximum number of alias IDs which can be recorded in bitmap
 *
 *
 * The function travels the lookup table to record alias ids for the given
 * The function travels the lookup table to record alias ids for the given
 * device match structures and alias stem.
 * device match structures and alias stem.
@@ -1971,7 +1971,7 @@ int of_alias_get_alias_list(const struct of_device_id *matches,
			 __func__, app->stem, app->id);
			 __func__, app->stem, app->id);


		if (strcmp(app->stem, stem) != 0) {
		if (strcmp(app->stem, stem) != 0) {
			pr_debug("%s: stem comparison doesn't passed %s\n",
			pr_debug("%s: stem comparison didn't pass %s\n",
				 __func__, app->stem);
				 __func__, app->stem);
			continue;
			continue;
		}
		}
@@ -1986,7 +1986,7 @@ int of_alias_get_alias_list(const struct of_device_id *matches,
			pr_debug("%s: Allocated ID %d\n", __func__, app->id);
			pr_debug("%s: Allocated ID %d\n", __func__, app->id);
			set_bit(app->id, bitmap);
			set_bit(app->id, bitmap);
		}
		}
		/* Alias exist but it not compatible with matches */
		/* Alias exists but is not compatible with matches */
	}
	}
	mutex_unlock(&of_mutex);
	mutex_unlock(&of_mutex);