From: Simon Glass Date: Tue, 23 Jun 2015 21:38:56 +0000 (-0600) Subject: dm: power: Avoid case-insensitve match for child names X-Git-Tag: v2015.10-rc1~154 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23ec2b570d948519109c284eddd14146c84d1f62;p=u-boot 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 Tested-by: Przemyslaw Marczak Acked-by: Przemyslaw Marczak --- diff --git a/drivers/power/pmic/pmic-uclass.c b/drivers/power/pmic/pmic-uclass.c index 812ac13baa..40b5135030 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);