]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
dm: power: Avoid case-insensitve match for child names
authorSimon Glass <sjg@chromium.org>
Tue, 23 Jun 2015 21:38:56 +0000 (15:38 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:48:52 +0000 (13:48 +0200)
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>
drivers/power/pmic/pmic-uclass.c

index 812ac13baa314d50cc8f00b11464f8258c60637f..40b51350300ecb5e762d4f2424abdd80ed519726 100644 (file)
@@ -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);