diff options
author | Simon Glass <sjg@chromium.org> | 2015-06-23 15:38:56 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-07-21 17:39:25 -0600 |
commit | 23ec2b570d948519109c284eddd14146c84d1f62 (patch) | |
tree | 227924504dc29c3ca63c04683730358b0cc72053 | |
parent | 6dc714102b63a67cdc32365c6f04678758b50ecb (diff) | |
download | u-boot-imx-23ec2b570d948519109c284eddd14146c84d1f62.zip u-boot-imx-23ec2b570d948519109c284eddd14146c84d1f62.tar.gz u-boot-imx-23ec2b570d948519109c284eddd14146c84d1f62.tar.bz2 |
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: Simon Glass <sjg@chromium.org>
Tested-by: Przemyslaw Marczak <p.marczak@samsung.com>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
-rw-r--r-- | drivers/power/pmic/pmic-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/pmic/pmic-uclass.c b/drivers/power/pmic/pmic-uclass.c index 812ac13..40b5135 100644 --- a/drivers/power/pmic/pmic-uclass.c +++ b/drivers/power/pmic/pmic-uclass.c @@ -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); |