]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jun 2021 09:59:43 +0000 (11:59 +0200)
commit139af3b2192cee6c7213879f648a21786aa98751
treeca85c513405cc95d5fa85de19cd4b1f7c5bafb96
parentc4e10f92c31983d7da0a9f9a281ece1c3da501c1
regulator: max77620: Use device_set_of_node_from_dev()

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>
drivers/regulator/max77620-regulator.c