regulator: hi655x: Fix pass wrong pointer to config.driver_data
authorAxel Lin <axel.lin@ingics.com>
Sun, 20 Jun 2021 13:27:15 +0000 (21:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:56:09 +0000 (16:56 +0200)
commitaec3a574c632e06b06d5f6fd731ddf57997372df
treea322f2e9ecdb005829bb3db90266fcfe3d48fd8b
parent96275c8f6c58235c3710bb7e3aec5a875d98a1c3
regulator: hi655x: Fix pass wrong pointer to config.driver_data

[ Upstream commit 61eb1b24f9e4f4e0725aa5f8164a932c933f3339 ]

Current code sets config.driver_data to a zero initialized regulator
which is obviously wrong. Fix it.

Fixes: 4618119b9be5 ("regulator: hi655x: enable regulator for hi655x PMIC")
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20210620132715.60215-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/regulator/hi655x-regulator.c