regulator: palmas: Remove *rdev[PALMAS_NUM_REGS] from struct palmas_pmic
This driver is using devm_regulator_register() so it is not necessary to save *rdev for clean up. Actually the pmic->rdev[id] is not used now. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
@@ -553,7 +553,6 @@ struct palmas_pmic {
|
||||
struct palmas *palmas;
|
||||
struct device *dev;
|
||||
struct regulator_desc desc[PALMAS_NUM_REGS];
|
||||
struct regulator_dev *rdev[PALMAS_NUM_REGS];
|
||||
struct mutex mutex;
|
||||
|
||||
int smps123;
|
||||
|
Reference in New Issue
Block a user