]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: mc13xxx: Use lowercase regulator names to match the DT
authorRob Herring <robh@kernel.org>
Fri, 25 Jan 2019 15:37:04 +0000 (09:37 -0600)
committerMark Brown <broonie@kernel.org>
Fri, 25 Jan 2019 17:51:05 +0000 (17:51 +0000)
commit027e8e00f25d53e9c12281e63e38220782105a62
tree15a92a9b561fe54202457c9316cca08f02a7046f
parent61020b4df1f7ed336b9040b5c796f9f738112817
regulator: mc13xxx: Use lowercase regulator names to match the DT

Since b31709c4c0b9 ("regulator: Use of_node_name_eq for node name
comparisons") Vivien reported the mc13892-regulator complaining about
not being able to find regulators.

This is because prior to that commit we used of_node_cmp() to compare
the regulator array passed from mc13892_regulators down to
mc13xxx_parse_regulators_dt() and they are all defined in uppercase
letters by the MC13892_*_DEFINE* macros, whereas they are defined as
lowercase in the DTS.

Fix this by using a lowercase regulator name to match the DT node name.

Fixes: b31709c4c0b9 ("regulator: Use of_node_name_eq for node name comparisons")
Reported-by: Vivien Didelot <vivien.didelot@gmail.com>
Reported-by: Florian Fainelli <f.fainelli@gmail.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Tested-by: Vivien Didelot <vivien.didelot@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/mc13783-regulator.c
drivers/regulator/mc13892-regulator.c
drivers/regulator/mc13xxx.h