Skip to content
Snippets Groups Projects
Commit 23ec2b57 authored by Simon Glass's avatar Simon Glass
Browse files

dm: power: Avoid case-insensitve match for child names


This is not user input (i.e. from the command line). It should be possible
to get the case correct and avoid the case-insensitive match. This will
help avoid sloppy device tree setups.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
Acked-by: default avatarPrzemyslaw Marczak <p.marczak@samsung.com>
parent 6dc71410
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ int pmic_bind_children(struct udevice *pmic, int offset,
child = NULL;
for (info = child_info; info->prefix && info->driver; info++) {
prefix_len = strlen(info->prefix);
if (strncasecmp(info->prefix, node_name, prefix_len))
if (strncmp(info->prefix, node_name, prefix_len))
continue;
debug(" - compatible prefix: '%s'\n", info->prefix);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment