]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
regulator: max77620: Use device_set_of_node_from_dev()
authorDmitry Osipenko <digetx@gmail.com>
Sun, 23 May 2021 22:42:42 +0000 (01:42 +0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:24:08 +0000 (19:24 +0200)
commit1ff03cecc0642e820bf2ef26470cd4954a7a5701
tree916b82092e9c3f6df6d024807610b46d75c58287
parente0bb0462b28744a5d64a683e9089141589112bba
regulator: max77620: Use device_set_of_node_from_dev()

BugLink: https://bugs.launchpad.net/bugs/1934012
commit 6f55c5dd1118b3076d11d9cb17f5c5f4bc3a1162 upstream.

The MAX77620 driver fails to re-probe on deferred probe because driver
core tries to claim resources that are already claimed by the PINCTRL
device. Use device_set_of_node_from_dev() helper which marks OF node as
reused, skipping erroneous execution of pinctrl_bind_pins() for the PMIC
device on the re-probe.

Fixes: aea6cb99703e ("regulator: resolve supply after creating regulator")
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20210523224243.13219-2-digetx@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/regulator/max77620-regulator.c