Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 073a77d0 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown
Browse files

regulator: tps65217: Remove *rdev[] from struct tps65217



Now this driver uses devm_regulator_register() so we don't need to save rdev
pointer to tps->rdev[i] for cleanup.

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Acked-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent c9eaa447
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -257,9 +257,6 @@ static int tps65217_regulator_probe(struct platform_device *pdev)
				pdev->name);
			return PTR_ERR(rdev);
		}

		/* Save regulator for cleanup */
		tps->rdev[i] = rdev;
	}
	return 0;
}
+0 −1
Original line number Diff line number Diff line
@@ -254,7 +254,6 @@ struct tps65217 {
	struct tps65217_board *pdata;
	unsigned long id;
	struct regulator_desc desc[TPS65217_NUM_REGULATOR];
	struct regulator_dev *rdev[TPS65217_NUM_REGULATOR];
	struct regmap *regmap;
};