summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/stpmic1_regulator.c
diff options
context:
space:
mode:
authorMarco Felsch <m.felsch@pengutronix.de>2020-09-28 17:50:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-29 10:28:42 +0200
commit87ff009c11397e8520c5ecfb0f574b4263bbf211 (patch)
tree030108ba8122849d59b344ea8f2e5d36b7c67369 /drivers/regulator/stpmic1_regulator.c
parent7406b77c773cc82b8d57195852210d07fa414313 (diff)
downloadbarebox-87ff009c11397e8520c5ecfb0f574b4263bbf211.tar.gz
barebox-87ff009c11397e8520c5ecfb0f574b4263bbf211.tar.xz
regulator: treewide: drop local device_d reference
Drop the local reference for each driver since the regulator_dev can handle this now. Attention: The pfuze is out of scope since this driver is not really a regulator driver. While on it fix a few minor style issues on the bcm2835 driver too. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/regulator/stpmic1_regulator.c')
-rw-r--r--drivers/regulator/stpmic1_regulator.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/stpmic1_regulator.c b/drivers/regulator/stpmic1_regulator.c
index 60905d394e..61227e0855 100644
--- a/drivers/regulator/stpmic1_regulator.c
+++ b/drivers/regulator/stpmic1_regulator.c
@@ -21,7 +21,6 @@
* @icc_mask: icc register mask
*/
struct stpmic1_regulator_cfg {
- struct device_d *dev;
struct regulator_dev rdev;
struct regulator_desc desc;
u8 mask_reset_reg;
@@ -388,7 +387,6 @@ static int stpmic1_regulator_register(struct device_d *dev, int id,
return 0;
}
- cfg->dev = dev;
cfg->rdev.desc = &cfg->desc;
cfg->rdev.dev = dev;
cfg->rdev.regmap = dev_get_regmap(dev->parent, NULL);