mfd: qcom_rpm: Use devm_of_platform_populate() to simplify code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 20 Nov 2022 13:01:43 +0000 (14:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:14:48 +0000 (13:14 +0100)
commitcaa40d1f8524d24c9a76d514805c56f618cd069d
tree138398bde7b510208a76c1616a9440bf87fd5de1
parent408dbaa0657861b1fe9feb95463d6f0fa661f6e4
mfd: qcom_rpm: Use devm_of_platform_populate() to simplify code

[ Upstream commit e48dee96046246980d476714b3f6684d45f29c13 ]

Use devm_of_platform_populate() instead of hand-writing it.
This simplifies the code.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/fd997dc92b9cee219e9c55e22959a94f4bbf570b.1668949256.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/qcom_rpm.c