regulator: max77620: Use device_set_of_node_from_dev()
stable inclusion from stable-v5.10.44 commit e3a502abf506e5c054b61a7c524caaa48e8e8537 bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=464 CVE: NA ------------------------------------------------- commit 6f55c5dd 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: aea6cb99 ("regulator: resolve supply after creating regulator") Signed-off-by: NDmitry Osipenko <digetx@gmail.com> Link: https://lore.kernel.org/r/20210523224243.13219-2-digetx@gmail.comSigned-off-by: NMark Brown <broonie@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: N843708678 <843708678@qq.com> Reviewed-by: NJian Cheng <cj.chengjian@huawei.com> Signed-off-by: NWang ShaoBo <bobo.shaobowang@huawei.com>
Showing
想要评论请 注册 或 登录