OSDN Git Service

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)
committerMark Brown <broonie@kernel.org>
Mon, 21 Jun 2021 12:02:05 +0000 (13:02 +0100)
commit61eb1b24f9e4f4e0725aa5f8164a932c933f3339
treeba148032408a92b640c67e7891b030b8097b10d3
parentcb2381cbecb81a8893b2d1e1af29bc2e5531df27
regulator: hi655x: Fix pass wrong pointer to config.driver_data

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